Skip to content

Commit 13af4d8

Browse files
committed
Fix: Focus on relevant output in end-to-end tests
1 parent bf575ea commit 13af4d8

File tree

72 files changed

+1203
-4221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1203
-4221
lines changed

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@
2525
},
2626
"require": {
2727
"php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
28-
"phpunit/phpunit": "^6.5.0 || ^7.5.0 || ^8.5.19 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0"
28+
"phpunit/phpunit": "^6.5.0"
2929
},
3030
"require-dev": {
3131
"ergebnis/composer-normalize": "^2.47.0",
3232
"ergebnis/license": "^2.6.0",
33-
"ergebnis/php-cs-fixer-config": "^6.46.0",
3433
"fakerphp/faker": "~1.20.0",
3534
"phpstan/extension-installer": "^1.4.3",
3635
"phpstan/phpstan": "^1.12.11",
3736
"phpstan/phpstan-deprecation-rules": "^1.2.1",
38-
"phpstan/phpstan-phpunit": "^1.4.1",
3937
"phpstan/phpstan-strict-rules": "^1.6.1",
4038
"psr/container": "~1.0.0",
4139
"rector/rector": "^1.2.10"
@@ -61,7 +59,6 @@
6159
"abandoned": "report"
6260
},
6361
"platform": {
64-
"php": "7.4.33"
6562
},
6663
"preferred-install": "dist",
6764
"sort-packages": true

composer.lock

Lines changed: 1062 additions & 3724 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/EndToEnd/Version06/Configuration/Defaults/test.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/Configuration/Defaults/phpunit.xml
16+
%a
2017

2118
............ 12 / 12 (100%)
2219

@@ -35,6 +32,4 @@ Detected 11 tests where the duration exceeded the maximum duration.
3532

3633
There is 1 additional slow test that is not listed here.
3734

38-
Time: %s, Memory: %s
39-
40-
OK (12 tests, 12 assertions)
35+
%a

test/EndToEnd/Version06/Configuration/MaximumCount/test.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/Configuration/MaximumCount/phpunit.xml
16+
%a
2017

2118
...... 6 / 6 (100%)
2219

@@ -28,6 +25,4 @@ Detected 5 tests where the duration exceeded the maximum duration.
2825

2926
There are 2 additional slow tests that are not listed here.
3027

31-
Time: %s, Memory: %s
32-
33-
OK (6 tests, 6 assertions)
28+
%a

test/EndToEnd/Version06/Configuration/MaximumDuration/test.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/Configuration/MaximumDuration/phpunit.xml
16+
%a
2017

2118
............ 12 / 12 (100%)
2219

@@ -35,6 +32,4 @@ Detected 11 tests where the duration exceeded the maximum duration.
3532

3633
There is 1 additional slow test that is not listed here.
3734

38-
Time: %s, Memory: %s
39-
40-
OK (12 tests, 12 assertions)
35+
%a

test/EndToEnd/Version06/TestCase/Bare/test.phpt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,11 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/TestCase/Bare/phpunit.xml
20-
21-
... 3 / 3 (100%)
16+
%a
2217

2318
Detected 2 tests where the duration exceeded the maximum duration.
2419

2520
1. 00:00.3%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\Bare\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1
2621
2. 00:00.2%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\Bare\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0
2722

28-
Time: %s, Memory: %s
29-
30-
OK (3 tests, 3 assertions)
23+
%a

test/EndToEnd/Version06/TestCase/Combination/test.phpt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/TestCase/Combination/phpunit.xml
20-
16+
%a
2117
... 3 / 3 (100%)
2218

2319
Detected 3 tests where the duration exceeded the maximum duration.
@@ -26,6 +22,4 @@ Detected 3 tests where the duration exceeded the maximum duration.
2622
2. 00:00.8%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0
2723
3. 00:00.6%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\Combination\SleeperTest::testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration
2824

29-
Time: %s, Memory: %s
30-
31-
OK (3 tests, 3 assertions)
25+
%a

test/EndToEnd/Version06/TestCase/WithAfterAnnotation/test.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/TestCase/WithAfterAnnotation/phpunit.xml
16+
%a
2017

2118
... 3 / 3 (100%)
2219

@@ -26,6 +23,4 @@ Detected 3 tests where the duration exceeded the maximum duration.
2623
2. 00:00.3%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0
2724
3. 00:00.1%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\WithAfterAnnotation\SleeperTest::testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration
2825

29-
Time: %s, Memory: %s
30-
31-
OK (3 tests, 3 assertions)
26+
%a

test/EndToEnd/Version06/TestCase/WithAfterClassAnnotation/test.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/TestCase/WithAfterClassAnnotation/phpunit.xml
16+
%a
2017

2118
... 3 / 3 (100%)
2219

@@ -25,6 +22,4 @@ Detected 2 tests where the duration exceeded the maximum duration.
2522
1. 00:00.3%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\WithAfterClassAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #1
2623
2. 00:00.2%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\WithAfterClassAnnotation\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0
2724

28-
Time: %s, Memory: %s
29-
30-
OK (3 tests, 3 assertions)
25+
%a

test/EndToEnd/Version06/TestCase/WithAssertPostConditions/test.phpt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ require_once __DIR__ . '/../../../../../vendor/autoload.php';
1313

1414
PHPUnit\TextUI\Command::main();
1515
--EXPECTF--
16-
PHPUnit %s
17-
18-
Runtime: %s
19-
Configuration: %s/EndToEnd/Version06/TestCase/WithAssertPostConditions/phpunit.xml
16+
%a
2017

2118
... 3 / 3 (100%)
2219

@@ -26,6 +23,4 @@ Detected 3 tests where the duration exceeded the maximum duration.
2623
2. 00:00.3%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\WithAssertPostConditions\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider with data set #0
2724
3. 00:00.1%s (00:00.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version06\TestCase\WithAssertPostConditions\SleeperTest::testSleeperSleepsLessThanMaximumDurationFromXmlConfiguration
2825

29-
Time: %s, Memory: %s
30-
31-
OK (3 tests, 3 assertions)
26+
%a

0 commit comments

Comments
 (0)