public function replaceEvents(array $events) { $this->events = $events; return $this; }
/** * Tests that the events contained within the handler can be replaced * with a different set of events. * * @return void * @depends testAddEventWithValidData */ public function testReplaceEvents() { $this->addMockEvent(); $expected = array(); $this->events->replaceEvents($expected); $actual = $this->events->getEvents(); $this->assertSame($expected, $actual); }