You are here

public function AbstractEventDispatcherTest::testInitialState in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\AbstractEventDispatcherTest::testInitialState()

File

vendor/symfony/event-dispatcher/Tests/AbstractEventDispatcherTest.php, line 47

Class

AbstractEventDispatcherTest

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));
}