Skip to content

Commit 045a5ba

Browse files
committed
replace assertEmpty() with stricter assertions
1 parent 910c5db commit 045a5ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Debug/TraceableEventDispatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function testItReturnsNoOrphanedEventsWhenCreated()
182182
{
183183
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
184184
$events = $tdispatcher->getOrphanedEvents();
185-
$this->assertEmpty($events);
185+
$this->assertSame([], $events);
186186
}
187187

188188
public function testItReturnsOrphanedEventsAfterDispatch()
@@ -200,7 +200,7 @@ public function testItDoesNotReturnHandledEvents()
200200
$tdispatcher->addListener('foo', function () {});
201201
$tdispatcher->dispatch(new Event(), 'foo');
202202
$events = $tdispatcher->getOrphanedEvents();
203-
$this->assertEmpty($events);
203+
$this->assertSame([], $events);
204204
}
205205

206206
public function testLogger()

0 commit comments

Comments
 (0)