public function GenericEventTest::testHasIterator

File

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

Class

GenericEventTest
Test class for Event.

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testHasIterator() {
  $data = array();
  foreach ($this->event as $key => $value) {
    $data[$key] = $value;
  }
  $this
    ->assertEquals(array(
    'name' => 'Event',
  ), $data);
}