Я через composer ставлю phpunit/dbunit. При запуске CI тестов phpunit на codeship сразу же получаю ошибку:
PHP Fatal error: Class 'PHPUnit_Extensions_Database_TestCase' not found in home/rof/src/bitbucket.org/user/project/tests/DatabaseTestCase.php on line 4
Содержимое composer.json:
{ "require": { "php": ">=5.6.0", "videlalvaro/php-amqplib": "2.5.*", "composer/installers": "~1.0" }, "require-dev": { "phpunit/phpunit": "5.1.*", "phpunit/dbunit": ">=1.2" } }
Setup Commands:
# Set php version through phpenv. 5.3, 5.4, 5.5 & 5.6 available phpenv local 5.6 # Install extensions through Pecl yes yes | pecl install memcache # Install dependencies through Composer composer install --prefer-source --no-interaction ./bin/provision/db
Configure Test Pipelines:
phpunit --bootstrap=./tests/bootstrap.php tests/
При этом на виртуальной машине при поставленном через pecl dbunit/phpunit всё ок.