/** * {@inheritDoc} */ public function getVocation() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getVocation', array()); return parent::getVocation(); }
/** * @covers Core\Entity\Module::setVocation * @covers Core\Entity\Module::getVocation */ public function testSetGetVocation() { $mockVocation = $this->getMockBuilder('Core\\Entity\\Vocation')->getMock(); $this->module->setVocation($mockVocation); $this->assertEquals($mockVocation, $this->module->getVocation()); }