public function EventManagerTest::testRemoveEventListener in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php \Doctrine\Tests\Common\EventManagerTest::testRemoveEventListener()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ EventManagerTest.php, line 53
Class
Namespace
Doctrine\Tests\CommonCode
public function testRemoveEventListener() {
$this->_eventManager
->addEventListener(array(
'preBar',
), $this);
$this
->assertTrue($this->_eventManager
->hasListeners(self::preBar));
$this->_eventManager
->removeEventListener(array(
'preBar',
), $this);
$this
->assertFalse($this->_eventManager
->hasListeners(self::preBar));
}