CakeDC/users — Issue #27: cake testsuite Users Controller/UsersController error
Author: manhunter
Created: 2011-12-17 21:59:40+00:00
State: open

Welcome to CakePHP v2.0.4 Console
---------------------------------------------------------------
App : app
Path: /var/www/cakephp/app/
---------------------------------------------------------------
CakePHP Test Shell
---------------------------------------------------------------
PHPUnit 3.6.2 by Sebastian Bergmann.

PHP Fatal error: Call to undefined method PHPUnit_Util_Filter::addFileToFilter() in /usr/share/php/PHPUnit/Framework.php on line 48
PHP Stack trace:
PHP 1. {main}() /var/www/cakephp/lib/Cake/Console/cake.php:0
PHP 2. ShellDispatcher::run() /var/www/cakephp/lib/Cake/Console/cake.php:24
PHP 3. ShellDispatcher->dispatch() /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php:69
PHP 4. Shell->runCommand() /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php:177
PHP 5. TestsuiteShell->main() /var/www/cakephp/lib/Cake/Console/Shell.php:381
PHP 6. TestsuiteShell->_run() /var/www/cakephp/lib/Cake/Console/Command/TestsuiteShell.php:255
PHP 7. CakeTestSuiteCommand->run() /var/www/cakephp/lib/Cake/Console/Command/TestsuiteShell.php:270
PHP 8. CakeTestRunner->doRun() /var/www/cakephp/lib/Cake/TestSuite/CakeTestSuiteCommand.php:110
PHP 9. PHPUnit_TextUI_TestRunner->doRun() /var/www/cakephp/lib/Cake/TestSuite/CakeTestRunner.php:56
PHP 10. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:320
PHP 11. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:745
PHP 12. CakeTestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:772
PHP 13. PHPUnit_Framework_TestCase->run() /var/www/cakephp/lib/Cake/TestSuite/CakeTestCase.php:78
PHP 14. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:727
PHP 15. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:649
PHP 16. CakeTestCase->assertPreConditions() /usr/share/php/PHPUnit/Framework/TestCase.php:779
PHP 17. UsersControllerTestCase->startTest() /var/www/cakephp/lib/Cake/TestSuite/CakeTestCase.php:160
PHP 18. PHPUnit_Framework_TestCase->getMock() /var/www/cakephp/app/Plugin/Users/Test/Case/Controller/UsersControllerTest.php:170
PHP 19. phpunit_mockobject_autoload() /usr/share/php/PHPUnit/Framework/MockObject/Autoload.php:0
PHP 20. require() /usr/share/php/PHPUnit/Framework/MockObject/Autoload.php:107
PHP 21. require_once() /usr/share/php/PHPUnit/Framework/MockObject/Generator.php:46
PHP 22. require_once() /usr/share/php/PHPUnit/Framework/MockObject/Matcher.php:46

Fatal error: Call to undefined method PHPUnit_Util_Filter::addFileToFilter() in /usr/share/php/PHPUnit/Framework.php on line 48

Call Stack:
0.0003 326844 1. {main}() /var/www/cakephp/lib/Cake/Console/cake.php:0
0.0017 422916 2. ShellDispatcher::run() /var/www/cakephp/lib/Cake/Console/cake.php:24
0.0288 1584400 3. ShellDispatcher->dispatch() /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php:69
0.0412 2298304 4. Shell->runCommand() /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php:177
0.0707 3122492 5. TestsuiteShell->main() /var/www/cakephp/lib/Cake/Console/Shell.php:381
0.0713 3123452 6. TestsuiteShell->_run() /var/www/cakephp/lib/Cake/Console/Command/TestsuiteShell.php:255
0.0765 3410916 7. CakeTestSuiteCommand->run() /var/www/cakephp/lib/Cake/Console/Command/TestsuiteShell.php:270
0.1352 6044968 8. CakeTestRunner->doRun() /var/www/cakephp/lib/Cake/TestSuite/CakeTestSuiteCommand.php:110
0.1689 7750584 9. PHPUnit_TextUI_TestRunner->doRun() /var/www/cakephp/lib/Cake/TestSuite/CakeTestRunner.php:56
0.1749 8095060 10. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:320
0.1751 8096376 11. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:745
0.1751 8096376 12. CakeTestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:772
0.3414 8105040 13. PHPUnit_Framework_TestCase->run() /var/www/cakephp/lib/Cake/TestSuite/CakeTestCase.php:78
0.3415 8105040 14. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:727
0.3439 8165732 15. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:649
0.3469 8329732 16. CakeTestCase->assertPreConditions() /usr/share/php/PHPUnit/Framework/TestCase.php:779
0.3469 8329828 17. UsersControllerTestCase->startTest() /var/www/cakephp/lib/Cake/TestSuite/CakeTestCase.php:160
0.3473 8332760 18. PHPUnit_Framework_TestCase->getMock() /var/www/cakephp/app/Plugin/Users/Test/Case/Controller/UsersControllerTest.php:170
0.3473 8333636 19. phpunit_mockobject_autoload() /usr/share/php/PHPUnit/Framework/MockObject/Autoload.php:0
0.3489 8433008 20. require('/usr/share/php/PHPUnit/Framework/MockObject/Generator.php') /usr/share/php/PHPUnit/Framework/MockObject/Autoload.php:107
0.3498 8489544 21. require_once('/usr/share/php/PHPUnit/Framework/MockObject/Matcher.php') /usr/share/php/PHPUnit/Framework/MockObject/Generator.php:46
0.3499 8501676 22. require_once('/usr/share/php/PHPUnit/Framework.php') /usr/share/php/PHPUnit/Framework/MockObject/Matcher.php:46

What to do?