| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function getHeaders() |
||
| 20 | { |
||
| 21 | $headers = ['id', 'author', 'title', 'genre', 'price', 'publish_date', 'description']; |
||
| 22 | $fileObject = new SplFileObject(__DIR__ . '/_files/basic.csv'); |
||
| 23 | $fileObject->setFlags(SplFileObject::READ_CSV); |
||
| 24 | $fileObject->setCsvControl(','); |
||
| 25 | $strategy = new ProvidedHeaderStrategy($headers); |
||
| 26 | $this->assertSame($headers, $strategy->getHeaders($fileObject)); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |