| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | * @covers \Remorhaz\UniLex\Example\Brainfuck\Interpreter |
||
| 14 | */ |
||
| 15 | class InterpreterTest extends TestCase |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @throws BrainfuckException |
||
| 19 | * @throws UniLexException |
||
| 20 | */ |
||
| 21 | public function testExec_ValidInput_GetOutputReturnsMatchingValue(): void |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @throws BrainfuckException |
||
| 35 | */ |
||
| 36 | public function testGetOutput_NoExecCalled_ThrowsException(): void |
||
| 37 | { |
||
| 38 | $interpreter = new Interpreter(); |
||
| 39 | |||
| 40 | $this->expectException(BrainfuckException::class); |
||
| 41 | $this->expectExceptionMessage('Output is not defined'); |
||
| 42 | $interpreter->getOutput(); |
||
| 45 |