public function GenericEventTest::testSetArguments

File

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

Class

GenericEventTest
Test class for Event.

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testSetArguments() {
  $result = $this->event
    ->setArguments(array(
    'foo' => 'bar',
  ));
  $this
    ->assertAttributeSame(array(
    'foo' => 'bar',
  ), 'arguments', $this->event);
  $this
    ->assertSame($this->event, $result);
}