You are here

public function AbstractEventDispatcherTest::testLegacyDispatch in Zircon Profile 8.0

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

@group legacy

File

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

Class

AbstractEventDispatcherTest

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testLegacyDispatch() {
  $event = new Event();
  $return = $this->dispatcher
    ->dispatch(self::preFoo, $event);
  $this
    ->assertEquals('pre.foo', $event
    ->getName());
}