File tree Expand file tree Collapse file tree 4 files changed +69
-42
lines changed Expand file tree Collapse file tree 4 files changed +69
-42
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ yarn-error.log
2525# ##< symfony/framework-bundle ###
2626
2727# ##> symfony/phpunit-bridge ###
28+ .phpunit
2829/phpunit.xml
2930# ##< symfony/phpunit-bridge ###
3031
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ sudo: false
44cache :
55 directories :
66 - $HOME/.composer/cache/files
7- - $HOME/symfony-bridge /.phpunit
7+ - ./bin /.phpunit
88
99env :
1010 global :
11- - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge /.phpunit"
11+ - SYMFONY_PHPUNIT_DIR=./bin /.phpunit
1212
1313matrix :
1414 fast_finish : true
@@ -25,10 +25,10 @@ before_install:
2525
2626install :
2727 - composer install
28- - ./vendor/ bin/simple- phpunit install
28+ - ./bin/phpunit install
2929
3030script :
31- - ./vendor/ bin/simple- phpunit
31+ - ./bin/phpunit
3232 # this checks that the source code follows the Symfony Code Syntax rules
3333 - ' [[ "$TRAVIS_PHP_VERSION" == "nightly" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
3434 # this checks that the YAML config files contain no syntax errors
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ if (!file_exists (dirname (__DIR__ ).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit ' )) {
5+ echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`. \n" ;
6+ exit (1 );
7+ }
8+ if (false === getenv ('SYMFONY_PHPUNIT_REMOVE ' )) {
9+ putenv ('SYMFONY_PHPUNIT_REMOVE= ' );
10+ }
11+ if (false === getenv ('SYMFONY_PHPUNIT_VERSION ' )) {
12+ putenv ('SYMFONY_PHPUNIT_VERSION=6.5 ' );
13+ }
14+ if (false === getenv ('SYMFONY_PHPUNIT_DIR ' )) {
15+ putenv ('SYMFONY_PHPUNIT_DIR= ' .__DIR__ .'/.phpunit ' );
16+ }
17+
18+ require dirname (__DIR__ ).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit ' ;
You can’t perform that action at this time.
0 commit comments