public function GenericEventTest::testOffsetGet

File

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

Class

GenericEventTest
Test class for Event.

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testOffsetGet() {

  // test getting key
  $this
    ->assertEquals('Event', $this->event['name']);

  // test getting invalid arg
  $this
    ->setExpectedException('InvalidArgumentException');
  $this
    ->assertFalse($this->event['nameNotExist']);
}