You are here

protected function GenericEventTest::setUp 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::setUp()

Prepares the environment before running a test.

File

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

Class

GenericEventTest
Test class for Event.

Namespace

Symfony\Component\EventDispatcher\Tests

Code

protected function setUp() {
  parent::setUp();
  $this->subject = new \stdClass();
  $this->event = new GenericEvent($this->subject, array(
    'name' => 'Event',
  ));
}