Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ce9ac3

Browse files
committed
[EventDispatcher] Added assertion.
1 parent ade5de0 commit 4ce9ac3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Symfony/Tests/Component/EventDispatcher/EventDispatcherTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public function testWorkaroundForPhpBug62976()
221221
$dispatcher = new EventDispatcher();
222222
$dispatcher->addListener('bug.62976', new CallableClass());
223223
$dispatcher->removeListener('bug.62976', function() {});
224+
$this->assertTrue($dispatcher->hasListeners('bug.62976'));
224225
}
225226
}
226227

0 commit comments

Comments
 (0)