Hi All,

I am having issues when running phpunit against my application with the 
following error within cake:

Fatal error: Unsupported operand types in 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/TestSuite/CakeTestCase.php 
on line 695

I can see some similar issues on stackflow etc that suggest that the issue 
is the use of += with an array.  However I can't imagine that others 
wouln't have already ran into this, so I suspect it is something to do with 
my setup.  Any help to point me in the right direction is appreciated.

I am running Debain 8
PHP: 5.6.9-0+deb8u1
PHPUnit 3.7.38
and Cake 2.4.3

Here is a copy of the full trace:

Fatal error: Unsupported operand types in 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/TestSuite/CakeTestCase.php 
on line 695

Call Stack:
    0.0001     227408   1. {main}() 
/var/lib/jenkins/jobs/unittest/workspace/app/Console/cake.php:0
    0.0007     315816   2. ShellDispatcher::run() 
/var/lib/jenkins/jobs/unittest/workspace/app/Console/cake.php:36
    0.0626    2166776   3. ShellDispatcher->dispatch() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/Console/ShellDispatcher.php:66
    0.2120    3541872   4. Shell->runCommand() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/Console/ShellDispatcher.php:207
    0.2221    4404832   5. TestShell->main() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/Console/Shell.php:434
    0.2222    4406496   6. TestShell->_run() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/Console/Command/TestShell.php:258
    0.2631    4634800   7. CakeTestSuiteCommand->run() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/Console/Command/TestShell.php:273
    0.6596   15788368   8. CakeTestRunner->doRun() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/TestSuite/CakeTestSuiteCommand.php:95
    0.6613   15856232   9. PHPUnit_TextUI_TestRunner->doRun() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/TestSuite/CakeTestRunner.php:60
    0.6673   16179416  10. PHPUnit_Framework_TestSuite->run() 
/usr/share/php/PHPUnit/TextUI/TestRunner.php:423
    1.0957   22429624  11. PHPUnit_Framework_TestSuite->run() 
/usr/share/php/PHPUnit/Framework/TestSuite.php:703
    5.2642   67485280  12. PHPUnit_Framework_TestSuite->run() 
/usr/share/php/PHPUnit/Framework/TestSuite.php:703
    5.2946   67830000  13. CakeTestCase->run() 
/usr/share/php/PHPUnit/Framework/TestSuite.php:703
    5.2946   67830000  14. PHPUnit_Framework_TestCase->run() 
/var/lib/jenkins/jobs/unittest/workspace/lib/Cake/TestSuite/CakeTestCase.php:82
    5.2946   67830000  15. PHPUnit_Framework_TestResult->run() 
/usr/share/php/PHPUnit/Framework/TestCase.php:771
    5.2947   67831008  16. PHPUnit_Framework_TestCase->runBare() 
/usr/share/php/PHPUnit/Framework/TestResult.php:643
    5.2952   67866560  17. PHPUnit_Framework_TestCase->runTest() 
/usr/share/php/PHPUnit/Framework/TestCase.php:835
    5.2952   67867384  18. ReflectionMethod->invokeArgs() 
/usr/share/php/PHPUnit/Framework/TestCase.php:963
    5.2952   67867592  19. 
TimeSlotsUtilitiesComponentTest->testGetSlotsForDateTimeSuccess() 
/usr/share/php/PHPUnit/Framework/TestCase.php:963
    5.2952   67868144  20. CakeTestCase->getMockForModel() 
/var/lib/jenkins/jobs/unittest/workspace/app/Test/Case/Controller/Component/TimeSlotsUtilitiesComponentTest.php:93

Regards
Callum

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to