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