/** * @return HydratorAwareInterface */ public function getObjectPrototype() { return $this->hasOneStrategy->getObjectPrototype(); }
public function testGetHydrator() { $abstractObject = $this->getMockForAbstractClass('\\Matryoshka\\Model\\Object\\AbstractObject'); $strategy = new HasOneStrategy($abstractObject); $this->assertSame($abstractObject, $strategy->getObjectPrototype()); }