public function testGetImmutableCollection() { $coll = $this->object->getImmutableCollection(); $this->assertInstanceOf('KVDdom_DomainObjectCollection', $coll); $this->assertEquals(0, count($coll)); $this->object->addMatch($this->match); $this->assertEquals(0, count($coll)); }
/** * addMatch * * @param KVDthes_Match $match * @return void */ public function addMatch(KVDthes_Match $match) { $this->checkMatches(); if ($this->matches->addMatch($match)) { //maak de inverse match aan $match->getMatchable()->addMatch(new KVDthes_Match($match->getInverseMatch(), $this)); $this->markDirty(); } }