Skip to content

Commit f9e0d99

Browse files
committed
[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.
1 parent b966328 commit f9e0d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ before_script:
4545
- php util/EnsureClusterAlive.php
4646

4747
script:
48-
- phpunit $PHPUNIT_FLAGS
48+
- vendor/bin/phpunit $PHPUNIT_FLAGS
4949

5050
after_script:
5151
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi

0 commit comments

Comments
 (0)