added the Symfony PHPUnit bridge to better manage deprecation notices

This commit is contained in:
Fabien Potencier
2015-08-16 19:04:11 +02:00
parent 23c392212e
commit b5db9dc5f2
3 changed files with 26 additions and 17 deletions
+21 -16
View File
@@ -1,28 +1,33 @@
language: php language: php
php: php:
- 5.2 - 5.2
- 5.3 - 5.3
- 5.4 - 5.4
- 5.5 - 5.5
- 5.6 - 5.6
- hhvm - hhvm
- nightly - nightly
allow_failures: allow_failures:
- php: nightly - php: nightly
env: env:
- TWIG_EXT=no - TWIG_EXT=no
- TWIG_EXT=yes - TWIG_EXT=yes
before_script: before_script:
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
- if [ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]; then sed -i.bak "s|vendor/autoload.php|test/bootstrap.php|" phpunit.xml.dist; fi
install:
# Composer is not available on PHP 5.2
- if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi
matrix: matrix:
exclude: exclude:
- php: hhvm - php: hhvm
env: TWIG_EXT=yes env: TWIG_EXT=yes
- php: nightly - php: nightly
env: TWIG_EXT=yes env: TWIG_EXT=yes
+4
View File
@@ -29,6 +29,10 @@
"require": { "require": {
"php": ">=5.2.7" "php": ">=5.2.7"
}, },
"require-dev": {
"symfony/phpunit-bridge": "~2.7",
"symfony/debug": "~2.7"
},
"autoload": { "autoload": {
"psr-0" : { "psr-0" : {
"Twig_" : "lib/" "Twig_" : "lib/"
+1 -1
View File
@@ -9,7 +9,7 @@
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false"
syntaxCheck="false" syntaxCheck="false"
bootstrap="test/bootstrap.php" bootstrap="vendor/autoload.php"
> >
<testsuites> <testsuites>
<testsuite name="Twig Test Suite"> <testsuite name="Twig Test Suite">