| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testLexer(string $input, array $expectedTokens) : void |
||
| 15 | { |
||
| 16 | $lexer = new DocBlockLexer(); |
||
| 17 | |||
| 18 | $lexer->setInput($input); |
||
| 19 | $lexer->moveNext(); |
||
| 20 | |||
| 21 | $tokens = []; |
||
| 22 | while (true) { |
||
| 23 | if (!$lexer->lookahead) { |
||
| 24 | break; |
||
| 25 | } |
||
| 26 | |||
| 27 | $lexer->moveNext(); |
||
| 28 | $tokens[] = $lexer->token['type']; |
||
| 29 | } |
||
| 30 | |||
| 31 | $this->assertSame($expectedTokens, $tokens); |
||
| 32 | } |
||
| 33 | |||
| 122 |