| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function testCallGetNextStateWithAnInvalidTokenWillThrowAnException() |
||
| 13 | { |
||
| 14 | $state = new State([]); |
||
| 15 | $state->addStateTarget(Token::T_CONTENT, $state); |
||
| 16 | |||
| 17 | static::assertSame($state, $state->getNextState(Token::T_CONTENT)); |
||
| 18 | |||
| 19 | static::expectException(RuntimeException::class); |
||
| 20 | $state->getNextState(Token::T_ESCAPE); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |