public function testManyToManyAssociationWorks() { $testCase = new TestsCases\BaseTestCase(); $associatedTestCase = new TestsCases\AssociationTestCase(); $testCase->addMappedManyToManyPropertyItem($associatedTestCase); $this->assertEquals($testCase, $associatedTestCase->getMappedManyToManyPropertyItems()[0]); $testCase->addMappedManyToManyPropertyItem(new TestsCases\AssociationTestCase()); $testCase->removeMappedManyToManyPropertyItem($associatedTestCase); $this->assertEquals(0, count($associatedTestCase->getMappedManyToManyPropertyItems())); }