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)); }
/** * getMatches * * @return KVDdom_DomainObjectCollection */ public function getMatches() { $this->checkMatches(); return $this->matches->getImmutableCollection(); }