You are here

public function GenericEventTest::testSetArgument in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/event-dispatcher/Tests/GenericEventTest.php \Symfony\Component\EventDispatcher\Tests\GenericEventTest::testSetArgument()

File

vendor/symfony/event-dispatcher/Tests/GenericEventTest.php, line 71

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);
}