public function testOneToOneAssociationWorks() { $testCase = new TestsCases\BaseTestCase(); $associatedTestCase = new TestsCases\AssociationTestCase(); $testCase->setInvertedOneToOneProperty($associatedTestCase); $this->assertEquals($testCase, $associatedTestCase->getInvertedOneToOneProperty()); $testCase->setInvertedOneToOneProperty(new TestsCases\AssociationTestCase()); $this->assertEquals(null, $associatedTestCase->getInvertedOneToOneProperty()); }