You are here

public function EventManagerTest::testInitialState in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php \Doctrine\Tests\Common\EventManagerTest::testInitialState()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/EventManagerTest.php, line 28

Class

EventManagerTest

Namespace

Doctrine\Tests\Common

Code

public function testInitialState() {
  $this
    ->assertEquals(array(), $this->_eventManager
    ->getListeners());
  $this
    ->assertFalse($this->_eventManager
    ->hasListeners(self::preFoo));
  $this
    ->assertFalse($this->_eventManager
    ->hasListeners(self::postFoo));
}