From f9e0d991508c73099c247d8dcfb9a7bf5722155a Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Wed, 9 Mar 2016 09:10:44 -0500 Subject: [PATCH] [TEST] Invoke phpunit dependency instead of travis phpunit.phar phpunit.phar bundles dependencies, and travis does not allow control over which version of phpunit is used. This means phpunit 5.x is used in the PHP 7.x branch, which unfortunately bundles symfony/yaml 3.x. Symfony/yaml 3.x has a breaking change that is incompatible with 2.x, so the tests are split between 7.x failing and 5.x passing, or vice versa. So we need to use the phpunit dependency instead of Travis. At least until 5.x is phased out and we can cutover to symfony/yaml 3.x across the branches. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d563b52ae..c3d72ff30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ before_script: - php util/EnsureClusterAlive.php script: - - phpunit $PHPUNIT_FLAGS + - vendor/bin/phpunit $PHPUNIT_FLAGS after_script: - if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi