public function GenericEventTest::testOffsetGet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Tests/GenericEventTest.php \Symfony\Component\EventDispatcher\Tests\GenericEventTest::testOffsetGet()
 
File
- vendor/
symfony/ event-dispatcher/ Tests/ GenericEventTest.php, line 92  
Class
- GenericEventTest
 - Test class for Event.
 
Namespace
Symfony\Component\EventDispatcher\TestsCode
public function testOffsetGet() {
  // test getting key
  $this
    ->assertEquals('Event', $this->event['name']);
  // test getting invalid arg
  $this
    ->setExpectedException('InvalidArgumentException');
  $this
    ->assertFalse($this->event['nameNotExist']);
}