public function testLoadMatch() { $termType = new KVDthes_TermType('PT', 'voorkeursterm'); $term2 = new KVDthes_TestTerm(508, $this->sessie, 'kapellen', $termType, 'bouwkundig erfgoed'); $this->object->loadMatch(new KVDthes_Match(KVDthes_Match::MATCH_RM, $term2)); $this->object->setLoadState(KVDthes_Matchable::LS_MATCH); $term2->setLoadState(KVDthes_Matchable::LS_MATCH); $this->assertEquals(1, count($this->object->getMatches())); $this->assertEquals(1, count($term2->getMatches())); }