| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function testWriteItem() |
||
| 10 | { |
||
| 11 | $delegate = $this->getMock('Ddeboer\DataImport\Writer'); |
||
| 12 | $writer = new BatchWriter($delegate); |
||
| 13 | |||
| 14 | $delegate->expects($this->once()) |
||
| 15 | ->method('prepare'); |
||
| 16 | |||
| 17 | $delegate->expects($this->never()) |
||
| 18 | ->method('writeItem'); |
||
| 19 | |||
| 20 | $writer->prepare(); |
||
| 21 | $writer->writeItem(['Test']); |
||
| 22 | } |
||
| 23 | |||
| 39 |