Closed ondrejmirtes closed 6 years ago
TokenReflection $ ant phpunit Buildfile: /Users/www/phpstan/vendor/TokenReflection/build.xml phpunit: [exec] PHPUnit 3.7.19 by Sebastian Bergmann. [exec] [exec] Configuration read from /Users/www/phpstan/vendor/TokenReflection/build/phpunit.xml [exec] [exec] .........................................SSSS.................. 63 / 216 ( 29%) [exec] ..........................F...FF.F............ [exec] PHP Fatal error: Trait method privatef has not been applied, because there are collisions with other trait methods on TokenReflection_Test_ClassTraits2 in /Users/www/phpstan/vendor/TokenReflection/tests/data/class/traits.php on line 51 [exec] PHP Stack trace: [exec] PHP 1. {main}() /usr/local/Cellar/php54/5.4.11/bin/phpunit:0 [exec] PHP 2. PHPUnit_TextUI_Command::main() /usr/local/Cellar/php54/5.4.11/bin/phpunit:46 [exec] PHP 3. PHPUnit_TextUI_Command->run() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/TextUI/Command.php:129 [exec] PHP 4. PHPUnit_TextUI_TestRunner->doRun() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/TextUI/Command.php:176 [exec] PHP 5. PHPUn [exec] Fatal error: Trait method privatef has not been applied, because there are collisions with other trait methods on TokenReflectiit_Framework_TestSuite->run() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/TextUI/TestRunner.php:349 [exec] PHP 6. PHPUnit_Frameworon_Test_ClassTraits2 in /Users/www/phpstan/vendor/TokenReflection/tests/data/class/traits.php on line 51 [exec] [exec] Call Stack: [exec] 0.0003k_TestSuite->run() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestSuite.php:705 [exec] PHP 7. PHPUnit_Framework_TestSui 227400 1. {main}() /usr/local/Cellar/php54/5.4.11/bin/phpunit:0 [exec] 0.0040 517792 2. PHPUnit_TextUI_Command::main()te->runTest() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestSuite.php:745 [exec] PHP 8. PHPUnit_Framework_TestCase->ru /usr/local/Cellar/php54/5.4.11/bin/phpunit:46 [exec] 0.0041 518024 3. PHPUnit_TextUI_Command->run() /usr/local/Cellar/php54/n() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestSuite.php:775 [exec] PHP 9. PHPUnit_Framework_TestResult->run() /usr5.4.11/lib/php/PHPUnit/TextUI/Command.php:129 [exec] 0.2428 6312992 4. PHPUnit_TextUI_TestRunner->doRun() /usr/local/Cellar/ph/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:776 [exec] PHP 10. PHPUnit_Framework_TestCase->runBare() /usr/local/p54/5.4.11/lib/php/PHPUnit/TextUI/Command.php:176 [exec] 0.2658 6819320 5. PHPUnit_Framework_TestSuite->run() /usr/local/CellaCellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestResult.php:648 [exec] PHP 11. PHPUnit_Framework_TestCase->runTest() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/TextUI/TestRunner.php:349 [exec] 3.7369 17719728 6. PHPUnit_Framework_TestSuite->run() /usr/locar/php54/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:831 [exec] PHP 12. ReflectionMethod->invokeArgs() /usr/local/Cellar/php54/5.4.11l/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestSuite.php:705 [exec] 5.7816 21766192 7. PHPUnit_Framework_TestSuite->runTes/lib/php/PHPUnit/Framework/TestCase.php:976 [exec] PHP 13. TokenReflection\ReflectionClassTest->testToString() /usr/local/Cellar/php54t() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestSuite.php:745 [exec] 5.7816 21766192 8. PHPUnit_Framework_Test/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:976 [exec] PHP 14. TokenReflection\Test->getClassReflection() /Users/www/phpstan/vendor/TokenReflection/tests/TokenReflection/ReflectionClassTest.php:1306 [exec] PHP 15. TokenReflection\Test->getClassInternalReflection() Case->run() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestSuite.php:775 [exec] 5.7817 21766192 9. PHPUnit_Framew/Users/www/phpstan/vendor/TokenReflection/tests/TokenReflection/Test.php:53 [exec] PHP 16. require_once() /Users/www/phpstan/vendor/Toork_TestResult->run() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:776 [exec] 5.7819 21767176 10. PHPUnkenReflection/tests/TokenReflection/Test.php:126 [exec] it_Framework_TestCase->runBare() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestResult.php:648 [exec] 5.7832 21796360 11. PHPUnit_Framework_TestCase->runTest() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:831 [exec] 5.7833 21797168 12. ReflectionMethod->invokeArgs() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:976 [exec] 5.7833 21797200 13. TokenReflection\ReflectionClassTest->testToString() /usr/local/Cellar/php54/5.4.11/lib/php/PHPUnit/Framework/TestCase.php:976 [exec] 6.5991 22029520 14. TokenReflection\Test->getClassReflection() /Users/www/phpstan/vendor/TokenReflection/tests/TokenReflection/ReflectionClassTest.php:1306 [exec] 6.5992 22029664 15. TokenReflection\Test->getClassInternalReflection() /Users/www/phpstan/vendor/TokenReflection/tests/TokenReflection/Test.php:53 [exec] 6.5996 22046720 16. require_once('/Users/www/phpstan/vendor/TokenReflection/tests/data/class/traits.php') /Users/www/phpstan/vendor/TokenReflection/tests/TokenReflection/Test.php:126 [exec] BUILD FAILED /Users/www/phpstan/vendor/TokenReflection/build.xml:101: exec returned: 255 Total time: 7 seconds
Output of my php -v:
PHP 5.4.11 (cli) (built: Mar 8 2013 20:44:06) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
Am I doing something wrong or is there simply a bug in the code?
No longer relevant
Output of my php -v:
Am I doing something wrong or is there simply a bug in the code?