Exemple #1
0
 public function testGetIteratorByType()
 {
     $this->object->addMatch($this->match);
     $it = $this->object->getIterator(KVDthes_Match::MATCH_RM);
     $this->assertInstanceOf('KVDthes_MatchTypeIterator', $it);
     $this->assertEquals(1, count($it));
 }
 /**
  * clearMatches
  *
  * @param  string $type Een van de MATCH_ constanten uit de
  *                      {@link KVDthes_Match} class.
  * @return void
  */
 public function clearMatches($type = null)
 {
     $this->checkMatches();
     $it = $this->matches->getIterator($type);
     foreach ($it as $match) {
         $this->removeMatch(match);
     }
 }