before_script:
# Output what version of phpunit we got going
- ./vendor/bin/phpunit --version
- - if [ "$TRAVIS_PHP_VERSION" = "7.4" ]; then export PHP_OPTS="-d zend_extension=xdebug.so" && export PHPUNIT_OPTS="--coverage-clover=coverage.clover"; fi
+ # Enable code coverage for a single version of php
+ - if [ "$TRAVIS_PHP_VERSION" = "7.4" ]; then export PHP_OPTS="-d zend_extension=xdebug.so -d xdebug.mode=coverage" && export PHPUNIT_OPTS="--coverage-clover=coverage.clover"; fi
+ - echo "php $PHP_OPTS ./vendor/phpunit/phpunit/phpunit $PHPUNIT_OPTS tests"
script:
- php $PHP_OPTS ./phpunit/phpunit/phpunit $PHPUNIT_OPTS tests
+ php $PHP_OPTS ./vendor/phpunit/phpunit/phpunit $PHPUNIT_OPTS tests
after_failure:
# Troubleshoot test env build problems