증상

travis ci 에서 갑자기 다음 에러가 발생

PHP Fatal error:  Uncaught Error: Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration() in /home/wunder/projects/symfony-backend/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:1042
Stack trace:
#0 /home/wunder/projects/symfony-backend/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(163): PHPUnit_TextUI_TestRunner->handleConfiguration(Array)
#1 /usr/share/php/PHPUnit/TextUI/Command.php(155): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
#2 /usr/share/php/PHPUnit/TextUI/Command.php(106): PHPUnit_TextUI_Command->run(Array, true)
#3 /usr/bin/phpunit(29): PHPUnit_TextUI_Command::main()
#4 {main}
  thrown in /home/wunder/projects/symfony-backend/vendor/phpunit/phpunit/src/TextUI/TestRunner.php on line 1042
CODE


원인

composer install 로 phpunit 을 설치했을 경우 vendor 있는 phpunit 을 사용해야 하지만 global 한 phpunit 을 사용


조치

phpunit 호출을 vendor/bin/phpunit 으로 변경

script:
#  - phpunit --verbose tests/MockTest
  - ./vendor/bin/phpunit --verbose tests/MockTest
CODE


Ref