public function AbstractEventDispatcherTest::testWorkaroundForPhpBug62976 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\AbstractEventDispatcherTest::testWorkaroundForPhpBug62976()
This bug affects:
- The PHP 5.3 branch for versions < 5.3.18
- The PHP 5.4 branch for versions < 5.4.8
- The PHP 5.5 branch is not affected
See also
https://bugs.php.net/bug.php?id=62976
File
- vendor/
symfony/ event-dispatcher/ Tests/ AbstractEventDispatcherTest.php, line 284
Class
Namespace
Symfony\Component\EventDispatcher\TestsCode
public function testWorkaroundForPhpBug62976() {
$dispatcher = $this
->createEventDispatcher();
$dispatcher
->addListener('bug.62976', new CallableClass());
$dispatcher
->removeListener('bug.62976', function () {
});
$this
->assertTrue($dispatcher
->hasListeners('bug.62976'));
}