Merge pull request #972 from nelmio/TESTS

Fix the tests
This commit is contained in:
Guilhem Niot 2017-03-15 13:42:47 +01:00 committed by GitHub
commit c3e285f08d
3 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,5 +4,6 @@
/.php_cs.cache
/.php_cs
/phpunit.xml
/.phpunit
/Tests/Functional/cache
/Tests/Functional/logs

View File

@ -8,6 +8,7 @@ sudo: false
cache:
directories:
- .phpunit
- $HOME/.composer/cache
branches:
@ -22,4 +23,8 @@ matrix:
- php: 7.0
env: COMPOSER_FLAGS="--prefer-lowest"
before_install: phpenv config-rm xdebug.ini
install: composer update $COMPOSER_FLAGS
script: ./phpunit

8
phpunit Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env php
<?php
if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
exit(1);
}
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';