Skip to content

Commit 56ba055

Browse files
committed
Update deps and create phpunit in bin/ directory
1 parent d9b74a1 commit 56ba055

File tree

4 files changed

+69
-42
lines changed

4 files changed

+69
-42
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff 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

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ sudo: false
44
cache:
55
directories:
66
- $HOME/.composer/cache/files
7-
- $HOME/symfony-bridge/.phpunit
7+
- ./bin/.phpunit
88

99
env:
1010
global:
11-
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
11+
- SYMFONY_PHPUNIT_DIR=./bin/.phpunit
1212

1313
matrix:
1414
fast_finish: true
@@ -25,10 +25,10 @@ before_install:
2525

2626
install:
2727
- composer install
28-
- ./vendor/bin/simple-phpunit install
28+
- ./bin/phpunit install
2929

3030
script:
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

bin/phpunit

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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';

composer.lock

+46-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)