@@ -133,8 +133,8 @@ public function testDispatch()
133133 $ this ->dispatcher ->dispatch (new Event (), self ::preFoo);
134134 $ this ->assertTrue ($ this ->listener ->preFooInvoked );
135135 $ this ->assertFalse ($ this ->listener ->postFooInvoked );
136- $ this ->assertInstanceOf (' Symfony\Contracts\EventDispatcher\ Event' , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
137- $ this ->assertInstanceOf (' Symfony\Contracts\EventDispatcher\ Event' , $ this ->dispatcher ->dispatch (new Event (), self ::preFoo));
136+ $ this ->assertInstanceOf (Event::class , $ this ->dispatcher ->dispatch (new Event (), 'noevent ' ));
137+ $ this ->assertInstanceOf (Event::class , $ this ->dispatcher ->dispatch (new Event (), self ::preFoo));
138138 $ event = new Event ();
139139 $ return = $ this ->dispatcher ->dispatch ($ event , self ::preFoo);
140140 $ this ->assertSame ($ event , $ return );
@@ -213,7 +213,7 @@ public function testAddSubscriberWithPriorities()
213213 $ listeners = $ this ->dispatcher ->getListeners ('pre.foo ' );
214214 $ this ->assertTrue ($ this ->dispatcher ->hasListeners (self ::preFoo));
215215 $ this ->assertCount (2 , $ listeners );
216- $ this ->assertInstanceOf (' Symfony\Component\EventDispatcher\Tests\TestEventSubscriberWithPriorities ' , $ listeners [0 ][0 ]);
216+ $ this ->assertInstanceOf (\ Symfony \Component \EventDispatcher \Tests \TestEventSubscriberWithPriorities::class , $ listeners [0 ][0 ]);
217217 }
218218
219219 public function testAddSubscriberWithMultipleListeners ()
0 commit comments