File tree
6 files changed
+95
-55
lines changed- src/Symfony/Bridge/PhpUnit
- Legacy
- TextUI
6 files changed
+95
-55
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + |
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
Lines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + |
Lines changed: 6 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 | 14 |
| |
17 |
| - | |
| 15 | + | |
18 | 16 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
25 | 22 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 | 23 |
| |
34 | 24 |
|
Lines changed: 6 additions & 37 deletions
@@ -11,45 +11,14 @@
11
11
12
12
namespace Symfony\Bridge\PhpUnit\TextUI;
13
13
14
-use PHPUnit\TextUI\TestRunner as BaseRunner;
15
-use Symfony\Bridge\PhpUnit\SymfonyTestsListener;
16
-
17
14
if (class_exists('PHPUnit_Runner_Version') && version_compare(\PHPUnit_Runner_Version::id(), '6.0.0', '<')) {
18
- class_alias('Symfony\Bridge\PhpUnit\Legacy\TestRunner', 'Symfony\Bridge\PhpUnit\TextUI\TestRunner');
15
+ class_alias('Symfony\Bridge\PhpUnit\Legacy\TestRunnerForV5', 'Symfony\Bridge\PhpUnit\TextUI\TestRunner');
19
16
} else {
20
- /**
21
- * {@inheritdoc}
22
- *
23
- * @internal
24
- */
25
- class TestRunner extends BaseRunner
26
- {
27
- /**
28
- * {@inheritdoc}
29
- */
30
- protected function handleConfiguration(array &$arguments)
31
- {
32
- $listener = new SymfonyTestsListener();
33
-
34
- $result = parent::handleConfiguration($arguments);
35
-
36
- $arguments['listeners'] = isset($arguments['listeners']) ? $arguments['listeners'] : array();
37
-
38
- $registeredLocally = false;
39
-
40
- foreach ($arguments['listeners'] as $registeredListener) {
41
- if ($registeredListener instanceof SymfonyTestsListener) {
42
- $registeredListener->globalListenerDisabled();
43
- $registeredLocally = true;
44
- break;
45
- }
46
- }
47
-
48
- if (!$registeredLocally) {
49
- $arguments['listeners'][] = $listener;
50
- }
17
+ class_alias('Symfony\Bridge\PhpUnit\Legacy\TestRunnerForV6', 'Symfony\Bridge\PhpUnit\TextUI\TestRunner');
18
+}
51
19
52
- return $result;
53
- }
20
+if (false) {
21
+ class TestRunner
22
+ {
54
23
}
55
24
}
0 commit comments