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