public function EventDispatcherTest::testInitialState

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/EventDispatcherTest.php, line 42

Class

EventDispatcherTest

Namespace

Symfony\Component\EventDispatcher\Tests

Code

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