Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function testFlush() |
||
25 | { |
||
26 | $delegate = $this->getMock('Ddeboer\DataImport\Writer'); |
||
27 | $writer = new BatchWriter($delegate); |
||
28 | |||
29 | $delegate->expects($this->exactly(20)) |
||
30 | ->method('writeItem'); |
||
31 | |||
32 | $writer->prepare(); |
||
33 | |||
34 | for ($i = 0; $i < 20; $i++) { |
||
35 | $writer->writeItem(['Test']); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 |