@@ -134,8 +134,8 @@ public function testDispatch()
134
134
$ this ->dispatcher ->dispatch (new Event (), self ::preFoo);
135
135
$ this ->assertTrue ($ this ->listener ->preFooInvoked );
136
136
$ 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));
139
139
$ event = new Event ();
140
140
$ return = $ this ->dispatcher ->dispatch ($ event , self ::preFoo);
141
141
$ this ->assertSame ($ event , $ return );
@@ -148,8 +148,8 @@ public function testDispatchContractsEvent()
148
148
$ this ->dispatcher ->dispatch (new ContractsEvent (), self ::preFoo);
149
149
$ this ->assertTrue ($ this ->listener ->preFooInvoked );
150
150
$ 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));
153
153
$ event = new Event ();
154
154
$ return = $ this ->dispatcher ->dispatch ($ event , self ::preFoo);
155
155
$ this ->assertSame ($ event , $ return );
@@ -228,7 +228,7 @@ public function testAddSubscriberWithPriorities()
228
228
$ listeners = $ this ->dispatcher ->getListeners ('pre.foo ' );
229
229
$ this ->assertTrue ($ this ->dispatcher ->hasListeners (self ::preFoo));
230
230
$ 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 ]);
232
232
}
233
233
234
234
public function testAddSubscriberWithMultipleListeners ()
0 commit comments