public function testOne2One() { $object = new One2One(); $this->assertEquals('* @method One2One getOne() * @method $this setOne(One2One $one) ', $object->_generatePhpDoc()); }
public function testOne2One() { $one1 = new One2One(); $one2 = new One2One(); $one1->setOne($one2); $this->assertInstanceOf('Saxulum\\Tests\\Accessor\\Fixtures\\Mapping\\One2One', $one1->getOne()); $this->assertInstanceOf('Saxulum\\Tests\\Accessor\\Fixtures\\Mapping\\One2One', $one2->getOne()); $one2->setOne(null); $this->assertEquals(null, $one1->getOne()); $this->assertEquals(null, $one2->getOne()); }