Total Complexity | 1 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class EchoHandlerTest extends TestCase |
||
10 | { |
||
11 | public function testHandle(): void |
||
12 | { |
||
13 | $this->expectOutputString( |
||
14 | 'word: mispelling | line: 10 | offset: 4 | suggestions: misspelling,misspellings | context: {"sentence":"two mispelling"}' . PHP_EOL |
||
15 | ); |
||
16 | |||
17 | (new EchoHandler())->handle( |
||
18 | [new Misspelling('mispelling', 4, 10, ['misspelling', 'misspellings'], ['sentence' => 'two mispelling'])] |
||
19 | ); |
||
22 |