Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | public function counts_lines_based_on_regex() |
||
24 | { |
||
25 | $name = 'count'; |
||
26 | $tester = $this->setUpCommandTesterFor($name, CountCommand::class); |
||
27 | $tester->execute(['command' => $name, 'input' => 'vfs://root/input.csv', 'expression' => '/^[0-9]{3}$/']); |
||
28 | |||
29 | $this->assertRegExp('/Found 2 matches\./', $tester->getDisplay()); |
||
30 | } |
||
31 | } |
||
32 |