Browse code

fixed tests for PHP 7.2

Fabien Potencier authored on 22/05/2017 05:33:19
Showing 1 changed files
... ...
@@ -30,7 +30,12 @@ before_script:
30 30
     - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
31 31
     - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
32 32
 
33
-script: ./vendor/bin/simple-phpunit
33
+script: |
34
+    if [[ $TRAVIS_PHP_VERSION = 7.* || $TRAVIS_PHP_VERSION = nightly ]]; then
35
+        SYMFONY_PHPUNIT_VERSION=6.1 ./vendor/bin/simple-phpunit
36
+    else
37
+        ./vendor/bin/simple-phpunit
38
+    fi
34 39
 
35 40
 matrix:
36 41
     fast_finish: true