Skip to content

Commit 57cf035

Browse files
committed
Use Simple PHPUnit
1 parent 630aea2 commit 57cf035

3 files changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
composer require --no-update symfony/config=$SYMFONY_VERSION symfony/http-kernel=$SYMFONY_VERSION symfony/dependency-injection=$SYMFONY_VERSION symfony/options-resolver=$SYMFONY_VERSION
3434
composer require --no-update --dev symfony/framework-bundle=$SYMFONY_VERSION symfony/yaml=$SYMFONY_VERSION
3535
composer update --prefer-lowest --prefer-dist --no-interaction --no-ansi --no-progress
36-
php vendor/bin/phpunit
36+
php vendor/bin/simple-phpunit
3737
3838
tests-php-7-4-symfony-5-0:
3939
runs-on: ubuntu-latest
@@ -49,7 +49,7 @@ jobs:
4949
composer require --no-update symfony/config=$SYMFONY_VERSION symfony/http-kernel=$SYMFONY_VERSION symfony/dependency-injection=$SYMFONY_VERSION symfony/options-resolver=$SYMFONY_VERSION
5050
composer require --no-update --dev symfony/framework-bundle=$SYMFONY_VERSION symfony/yaml=$SYMFONY_VERSION
5151
composer update --prefer-dist --no-interaction --no-ansi --no-progress
52-
php vendor/bin/phpunit
52+
php vendor/bin/simple-phpunit
5353
5454
tests-php-8-0-symfony-5-2:
5555
runs-on: ubuntu-latest
@@ -65,4 +65,4 @@ jobs:
6565
composer require --no-update symfony/config=$SYMFONY_VERSION symfony/http-kernel=$SYMFONY_VERSION symfony/dependency-injection=$SYMFONY_VERSION symfony/options-resolver=$SYMFONY_VERSION
6666
composer require --no-update --dev symfony/framework-bundle=$SYMFONY_VERSION symfony/yaml=$SYMFONY_VERSION
6767
composer update --prefer-dist --no-interaction --no-ansi --no-progress
68-
php vendor/bin/phpunit
68+
php vendor/bin/simple-phpunit

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
"symfony/options-resolver": "^4.2|^5.0"
2929
},
3030
"require-dev": {
31-
"league/flysystem-aws-s3-v3": "^2.0",
3231
"league/flysystem-async-aws-s3": "^2.0",
32+
"league/flysystem-aws-s3-v3": "^2.0",
3333
"league/flysystem-ftp": "^2.0",
3434
"league/flysystem-google-cloud-storage": "^2.0",
3535
"league/flysystem-memory": "^2.0",
3636
"league/flysystem-sftp": "^2.0",
37-
"phpunit/phpunit": "^9.0",
3837
"symfony/dotenv": "^4.2|^5.0",
3938
"symfony/framework-bundle": "^4.2|^5.0",
39+
"symfony/phpunit-bridge": "^5.2",
4040
"symfony/var-dumper": "^4.1|^5.0",
4141
"symfony/yaml": "^4.2|^5.0"
4242
},

phpunit.xml.dist

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
23
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
34
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.1/phpunit.xsd"
56
backupGlobals="false"
67
colors="true"
78
bootstrap="vendor/autoload.php">
8-
<php>
9-
<ini name="error_reporting" value="-1"/>
10-
<env name="SHELL_VERBOSITY" value="-1"/>
11-
</php>
9+
<php>
10+
<ini name="error_reporting" value="-1" />
11+
<env name="SHELL_VERBOSITY" value="-1" />
12+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="9999" />
13+
</php>
1214

13-
<testsuites>
14-
<testsuite name="FlysystemBundle Test Suite">
15-
<directory>tests/</directory>
16-
</testsuite>
17-
</testsuites>
15+
<testsuites>
16+
<testsuite name="FlysystemBundle Test Suite">
17+
<directory>tests/</directory>
18+
</testsuite>
19+
</testsuites>
1820

19-
<coverage>
20-
<include>
21-
<directory>./src/</directory>
22-
</include>
23-
</coverage>
21+
<filter>
22+
<whitelist>
23+
<directory>./src/</directory>
24+
</whitelist>
25+
</filter>
2426
</phpunit>

0 commit comments

Comments
 (0)