ZF-909: Unit Tests fail (Cannot redeclare class Zend_Controller_AllTests in ..../tests/Zend/Service/AllTests.php)

Description

sh-3.1$ svn up At revision 3405. sh-3.1$ phpunit -d include_path=.:library/:tests/:/opt/php/lib/php AllTests tests/AllTests.php

Fatal error: Cannot redeclare class Zend_Controller_AllTests in /home/sebastian/Work/ZendFramework/tests/Zend/Service/AllTests.php on line 19

Call Stack: 0.0002 53028 1. {main}() /opt/php/bin/phpunit:0 0.0023 168752 2. require('/opt/php/lib/php/PHPUnit/TextUI/Command.php') /opt/php/bin/phpunit:44 0.0667 2696744 3. PHPUnit_TextUI_Command::main() /opt/php/lib/php/PHPUnit/TextUI/Command.php:401 0.0670 2702820 4. PHPUnit_Runner_BaseTestRunner->getTest() /opt/php/lib/php/PHPUnit/TextUI/Command.php:79 0.0670 2702820 5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass() /opt/php/lib/php/PHPUnit/Runner/BaseTestRunner.php:201 0.0670 2702972 6. PHPUnit_Runner_StandardTestSuiteLoader->load() /opt/php/lib/php/PHPUnit/Runner/BaseTestRunner.php:266 0.0671 2703124 7. PHPUnit_Util_Fileloader::checkAndLoad() /opt/php/lib/php/PHPUnit/Runner/StandardTestSuiteLoader.php:93 0.1121 2703200 8. PHPUnit_Util_Fileloader::load() /opt/php/lib/php/PHPUnit/Util/Fileloader.php:91 0.1125 2718116 9. include_once('/home/sebastian/Work/ZendFramework/tests/AllTests.php') /opt/php/lib/php/PHPUnit/Util/Fileloader.php:131 0.1166 2903996 10. require_once('/home/sebastian/Work/ZendFramework/tests/Zend/AllTests.php') /home/sebastian/Work/ZendFramework/tests/AllTests.php:26 0.4971 27405616 11. require_once('/home/sebastian/Work/ZendFramework/tests/Zend/Service/AllTests.php') /home/sebastian/Work/ZendFramework/tests/Zend/AllTests.php:32

matthew broke it with his import of Zend_Service_Akismet to core.

Comments

Resolved in current trunk

Verified fix.

Changing to comply with new IT coventions for components.