@@ -33,11 +33,11 @@ class BootstrappedExtension
33
33
{
34
34
public function bootstrap (Configuration $ configuration , Facade $ facade , ParameterCollection $ parameters ): void
35
35
{
36
- $ extension = new Browser \ Test \ LegacyExtension ();
36
+ $ extension = new LegacyExtension ();
37
37
38
38
$ facade ->registerSubscriber (new class ($ extension ) implements TestRunnerStartedSubscriber {
39
39
public function __construct (
40
- private Browser \ Test \ LegacyExtension $ extension ,
40
+ private LegacyExtension $ extension ,
41
41
) {
42
42
}
43
43
@@ -49,7 +49,7 @@ public function notify(TestRunnerStartedEvent $event): void
49
49
50
50
$ facade ->registerSubscriber (new class ($ extension ) implements TestRunnerFinishedSubscriber {
51
51
public function __construct (
52
- private Browser \ Test \ LegacyExtension $ extension ,
52
+ private LegacyExtension $ extension ,
53
53
) {
54
54
}
55
55
@@ -61,7 +61,7 @@ public function notify(TestRunnerFinishedEvent $event): void
61
61
62
62
$ facade ->registerSubscriber (new class ($ extension ) implements TestStartedSubscriber {
63
63
public function __construct (
64
- private Browser \ Test \ LegacyExtension $ extension ,
64
+ private LegacyExtension $ extension ,
65
65
) {
66
66
}
67
67
@@ -73,7 +73,7 @@ public function notify(TestStartedEvent $event): void
73
73
74
74
$ facade ->registerSubscriber (new class ($ extension ) implements TestFinishedSubscriber {
75
75
public function __construct (
76
- private Browser \ Test \ LegacyExtension $ extension ,
76
+ private LegacyExtension $ extension ,
77
77
) {
78
78
}
79
79
@@ -88,14 +88,14 @@ public function notify(TestFinishedEvent $event): void
88
88
89
89
$ facade ->registerSubscriber (new class ($ extension ) implements ErroredSubscriber {
90
90
public function __construct (
91
- private Browser \ Test \ LegacyExtension $ extension ,
91
+ private LegacyExtension $ extension ,
92
92
) {
93
93
}
94
94
95
95
public function notify (Errored $ event ): void
96
96
{
97
97
$ this ->extension ->executeAfterTestError (
98
- Browser \ Test \ BootstrappedExtension::testName ($ event ->test ()),
98
+ BootstrappedExtension::testName ($ event ->test ()),
99
99
$ event ->throwable ()->message (),
100
100
(float ) $ event ->telemetryInfo ()->time ()->seconds (),
101
101
);
@@ -104,14 +104,14 @@ public function notify(Errored $event): void
104
104
105
105
$ facade ->registerSubscriber (new class ($ extension ) implements FailedSubscriber {
106
106
public function __construct (
107
- private Browser \ Test \ LegacyExtension $ extension ,
107
+ private LegacyExtension $ extension ,
108
108
) {
109
109
}
110
110
111
111
public function notify (Failed $ event ): void
112
112
{
113
113
$ this ->extension ->executeAfterTestFailure (
114
- Browser \ Test \ BootstrappedExtension::testName ($ event ->test ()),
114
+ BootstrappedExtension::testName ($ event ->test ()),
115
115
$ event ->throwable ()->message (),
116
116
(float ) $ event ->telemetryInfo ()->time ()->seconds ())
117
117
;
@@ -136,6 +136,6 @@ public static function testName(Test $test): string
136
136
*/
137
137
public static function registerBrowser (Browser $ browser ): void
138
138
{
139
- Browser \ Test \ LegacyExtension::registerBrowser ($ browser );
139
+ LegacyExtension::registerBrowser ($ browser );
140
140
}
141
141
}
0 commit comments