@@ -33,11 +33,11 @@ class BootstrappedExtension
3333{
3434 public function bootstrap (Configuration $ configuration , Facade $ facade , ParameterCollection $ parameters ): void
3535 {
36- $ extension = new Browser \ Test \ LegacyExtension ();
36+ $ extension = new LegacyExtension ();
3737
3838 $ facade ->registerSubscriber (new class ($ extension ) implements TestRunnerStartedSubscriber {
3939 public function __construct (
40- private Browser \ Test \ LegacyExtension $ extension ,
40+ private LegacyExtension $ extension ,
4141 ) {
4242 }
4343
@@ -49,7 +49,7 @@ public function notify(TestRunnerStartedEvent $event): void
4949
5050 $ facade ->registerSubscriber (new class ($ extension ) implements TestRunnerFinishedSubscriber {
5151 public function __construct (
52- private Browser \ Test \ LegacyExtension $ extension ,
52+ private LegacyExtension $ extension ,
5353 ) {
5454 }
5555
@@ -61,7 +61,7 @@ public function notify(TestRunnerFinishedEvent $event): void
6161
6262 $ facade ->registerSubscriber (new class ($ extension ) implements TestStartedSubscriber {
6363 public function __construct (
64- private Browser \ Test \ LegacyExtension $ extension ,
64+ private LegacyExtension $ extension ,
6565 ) {
6666 }
6767
@@ -73,7 +73,7 @@ public function notify(TestStartedEvent $event): void
7373
7474 $ facade ->registerSubscriber (new class ($ extension ) implements TestFinishedSubscriber {
7575 public function __construct (
76- private Browser \ Test \ LegacyExtension $ extension ,
76+ private LegacyExtension $ extension ,
7777 ) {
7878 }
7979
@@ -88,14 +88,14 @@ public function notify(TestFinishedEvent $event): void
8888
8989 $ facade ->registerSubscriber (new class ($ extension ) implements ErroredSubscriber {
9090 public function __construct (
91- private Browser \ Test \ LegacyExtension $ extension ,
91+ private LegacyExtension $ extension ,
9292 ) {
9393 }
9494
9595 public function notify (Errored $ event ): void
9696 {
9797 $ this ->extension ->executeAfterTestError (
98- Browser \ Test \ BootstrappedExtension::testName ($ event ->test ()),
98+ BootstrappedExtension::testName ($ event ->test ()),
9999 $ event ->throwable ()->message (),
100100 (float ) $ event ->telemetryInfo ()->time ()->seconds (),
101101 );
@@ -104,14 +104,14 @@ public function notify(Errored $event): void
104104
105105 $ facade ->registerSubscriber (new class ($ extension ) implements FailedSubscriber {
106106 public function __construct (
107- private Browser \ Test \ LegacyExtension $ extension ,
107+ private LegacyExtension $ extension ,
108108 ) {
109109 }
110110
111111 public function notify (Failed $ event ): void
112112 {
113113 $ this ->extension ->executeAfterTestFailure (
114- Browser \ Test \ BootstrappedExtension::testName ($ event ->test ()),
114+ BootstrappedExtension::testName ($ event ->test ()),
115115 $ event ->throwable ()->message (),
116116 (float ) $ event ->telemetryInfo ()->time ()->seconds ())
117117 ;
@@ -136,6 +136,6 @@ public static function testName(Test $test): string
136136 */
137137 public static function registerBrowser (Browser $ browser ): void
138138 {
139- Browser \ Test \ LegacyExtension::registerBrowser ($ browser );
139+ LegacyExtension::registerBrowser ($ browser );
140140 }
141141}
0 commit comments