| 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 = 'create'; |
||
| 26 | $tester = $this->setUpCommandTesterFor($name, CreateCommand::class); |
||
| 27 | $tester->execute(['command' => $name, 'input' => 'vfs://root/input.csv', 'expression' => '/^[0-9]{3}$/', 'output' => 'vfs://root/output.csv']); |
||
| 28 | |||
| 29 | $this->assertEquals("123\n456\n", file_get_contents('vfs://root/output.csv')); |
||
| 30 | } |
||
| 31 | } |