protected function GenericEventTest::setUp

Prepares the environment before running a test.

File

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

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',
  ), 'foo');
}