public function testCountableInterface()
 {
     $t1 = new TestTokenizer();
     $t2 = new Test1Tokenizer();
     $r = new TokenizerRegistry();
     $r->add($t1);
     $this->assertEquals(1, $r->count());
     $r->add($t2);
     $this->assertEquals(2, $r->count());
 }
 /**
  * Get the tokenizers
  *
  * @return Tokenizer\TokenizerRegistry
  */
 public function getTokenizers()
 {
     if (0 == $this->_tokenizers->count()) {
         foreach ($this->getOptions()->getTokenizers() as $tokenizer) {
             $this->addTokenizer($tokenizer);
         }
     }
     return $this->_tokenizers;
 }