public function testTableRelationshipsFindManyToManyMagic() { $row = new My_ZendDbTable_Row_TestMockRow(); $this->assertNull($row->matchTable); $this->assertNull($row->intersectionTable); $this->assertNull($row->callerRefRuleKey); $this->assertNull($row->matchRefRuleKey); $row->findTable1ViaTable2(); $this->assertEquals('Table1', $row->matchTable); $this->assertEquals('Table2', $row->intersectionTable); $this->assertNull($row->callerRefRuleKey); $this->assertNull($row->matchRefRuleKey); $row->findTable3ViaTable4ByRule1(); $this->assertEquals('Table3', $row->matchTable); $this->assertEquals('Table4', $row->intersectionTable); $this->assertEquals('Rule1', $row->callerRefRuleKey); $this->assertNull($row->matchRefRuleKey); $row->findTable5ViaTable6ByRule2AndRule3(); $this->assertEquals('Table5', $row->matchTable); $this->assertEquals('Table6', $row->intersectionTable); $this->assertEquals('Rule2', $row->callerRefRuleKey); $this->assertEquals('Rule3', $row->matchRefRuleKey); }