public function EventManagerTest::testInitialState

File

drupal/core/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));
}