/
travis ci 에서 phpunit 에러날 때
travis ci 에서 phpunit 에러날 때
증상
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
원인
composer install 로 phpunit 을 설치했을 경우 vendor 있는 phpunit 을 사용해야 하지만 global 한 phpunit 을 사용
조치
phpunit 호출을 vendor/bin/phpunit 으로 변경
script: # - phpunit --verbose tests/MockTest - ./vendor/bin/phpunit --verbose tests/MockTest
Ref
, multiple selections available,
Related content
php 가 session 디렉터리에 쓰지 못할 때
php 가 session 디렉터리에 쓰지 못할 때
More like this
wordpress 설치시 'Error establishing a database connection' 에러 처리
wordpress 설치시 'Error establishing a database connection' 에러 처리
More like this
PHP Composer v1 설치/사용하기
PHP Composer v1 설치/사용하기
More like this
WSL 2 Ubuntu 20 LTS 에 php laravel 개발 환경 구성
WSL 2 Ubuntu 20 LTS 에 php laravel 개발 환경 구성
More like this
cURL error 77: error setting certificate verify locations 에러 해결책
cURL error 77: error setting certificate verify locations 에러 해결책
More like this
phpunit Fixtures
phpunit Fixtures
More like this