@@ -134,8 +134,8 @@ public function testDispatch()
134134 $ this ->dispatcher ->dispatch (new Event (), self ::preFoo);
135135 $ this ->assertTrue ($ this ->listener ->preFooInvoked );
136136 $ this ->assertFalse ($ this ->listener ->postFooInvoked );
137- $ this ->assertInstanceOf (' Symfony\Component\EventDispatcher\ Event' , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
138- $ this ->assertInstanceOf (' Symfony\Component\EventDispatcher\ Event' , $ this ->dispatcher ->dispatch (new Event (), self ::preFoo));
137+ $ this ->assertInstanceOf (Event::class , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
138+ $ this ->assertInstanceOf (Event::class , $ this ->dispatcher ->dispatch (new Event (), self ::preFoo));
139139 $ event = new Event ();
140140 $ return = $ this ->dispatcher ->dispatch ($ event , self ::preFoo);
141141 $ this ->assertSame ($ event , $ return );
@@ -148,8 +148,8 @@ public function testDispatchContractsEvent()
148148 $ this ->dispatcher ->dispatch (new ContractsEvent (), self ::preFoo);
149149 $ this ->assertTrue ($ this ->listener ->preFooInvoked );
150150 $ this ->assertFalse ($ this ->listener ->postFooInvoked );
151- $ this ->assertInstanceOf (' Symfony\Component\EventDispatcher\ Event' , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
152- $ this ->assertInstanceOf (' Symfony\Component\EventDispatcher\ Event' , $ this ->dispatcher ->dispatch (new Event (), self ::preFoo));
151+ $ this ->assertInstanceOf (Event::class , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
152+ $ this ->assertInstanceOf (Event::class , $ this ->dispatcher ->dispatch (new Event (), self ::preFoo));
153153 $ event = new Event ();
154154 $ return = $ this ->dispatcher ->dispatch ($ event , self ::preFoo);
155155 $ this ->assertSame ($ event , $ return );
@@ -228,7 +228,7 @@ public function testAddSubscriberWithPriorities()
228228 $ listeners = $ this ->dispatcher ->getListeners ('pre.foo ' );
229229 $ this ->assertTrue ($ this ->dispatcher ->hasListeners (self ::preFoo));
230230 $ this ->assertCount (2 , $ listeners );
231- $ this ->assertInstanceOf (' Symfony\Component\EventDispatcher\Tests\TestEventSubscriberWithPriorities ' , $ listeners [0 ][0 ]);
231+ $ this ->assertInstanceOf (\ Symfony \Component \EventDispatcher \Tests \TestEventSubscriberWithPriorities::class , $ listeners [0 ][0 ]);
232232 }
233233
234234 public function testAddSubscriberWithMultipleListeners ()
0 commit comments