You are here

public function GenericEventTest::testSetArguments in Zircon Profile 8

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

File

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

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