public function EventManagerTest::testAddEventSubscriber 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::testAddEventSubscriber()
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ EventManagerTest.php, line 61
Class
Namespace
Doctrine\Tests\CommonCode
public function testAddEventSubscriber() {
$eventSubscriber = new TestEventSubscriber();
$this->_eventManager
->addEventSubscriber($eventSubscriber);
$this
->assertTrue($this->_eventManager
->hasListeners(self::preFoo));
$this
->assertTrue($this->_eventManager
->hasListeners(self::postFoo));
}