public function GenericEventTest::testSetArgument

File

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

Class

GenericEventTest
Test class for Event.

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testSetArgument() {
  $result = $this->event
    ->setArgument('foo2', 'bar2');
  $this
    ->assertAttributeSame(array(
    'name' => 'Event',
    'foo2' => 'bar2',
  ), 'arguments', $this->event);
  $this
    ->assertEquals($this->event, $result);
}