Beispiel #1
0
 /**
  * @expectedException \chabior\jTimer\Exception\UnexcepectedCharacterException
  * @dataProvider failTokenizerDataProvider
  */
 public function testFailTokenizer($input)
 {
     $lexer = new Lexer();
     $lexer->tokenize($input);
 }
Beispiel #2
0
 /**
  * 
  * @param string $input
  * @return array
  */
 protected function getValidTokens($input = '12h 3i')
 {
     $lexer = new Lexer();
     return $lexer->tokenize($input);
 }