Exemplo n.º 1
0
 /**
  * @expectedException \RuntimeException
  * @expectedExceptionMessage  Class "Mufuphlex\Textonic\Tokenizer\TokenizerInvalid" does not implement interface TokenizerInterface
  */
 public function testMakeFailsOnInvalidInterface()
 {
     Factory::make('invalid');
 }
Exemplo n.º 2
0
 /**
  * @return \Mufuphlex\Textonic\Tokenizer\TokenizerInterface
  */
 protected function makeTokenizer()
 {
     return Factory::make($this->type);
 }