Skip to content

Commit a6ee5cb

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Use ::class keyword when possible
2 parents 5ee85fb + f008f55 commit a6ee5cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/EventDispatcherTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)