public function testReversedOneToOneAssociationWorks() { $testCase = new TestsCases\BaseTestCase(); $associatedTestCase = new TestsCases\AssociationTestCase(); $testCase->setInvertedReversedOneToOneProperty($associatedTestCase); $this->assertEquals($testCase, $associatedTestCase->getInvertedReversedOneToOneProperty()); $testCase->setInvertedReversedOneToOneProperty(new TestsCases\AssociationTestCase()); $this->assertEquals(null, $associatedTestCase->getInvertedReversedOneToOneProperty()); $testCase->setInvertedReversedOneToOneProperty($associatedTestCase); $this->assertEquals($associatedTestCase, $testCase->getInvertedReversedOneToOneProperty()); $associatedTestCase->setInvertedReversedOneToOneProperty(new TestsCases\AssociationTestCase()); $this->assertEquals(null, $testCase->getInvertedReversedOneToOneProperty()); }