public function setType($type) { $this->type = (string) $type; return $this; }
/** * Tests that the event type can be changed. * * @return void */ public function testSetType() { $type = 'foo'; $this->event->setType($type); $this->assertEquals($type, $this->event->getType()); }