| @@ 32-38 (lines=7) @@ | ||
| 29 | * @test | |
| 30 | * @covers ::isHeaderRow | |
| 31 | */ | |
| 32 | public function rowIsHeaderRow() | |
| 33 |     { | |
| 34 | $strategy = new DeriveHeaderStrategy(); | |
| 35 | $fileObject = $this->getFileObject(); | |
| 36 | $strategy->getHeaders($fileObject); | |
| 37 | $this->assertTrue($strategy->isHeaderRow($fileObject->fgetcsv())); | |
| 38 | } | |
| 39 | ||
| 40 | /** | |
| 41 | * @test | |
| @@ 44-51 (lines=8) @@ | ||
| 41 | * @test | |
| 42 | * @covers ::isHeaderRow | |
| 43 | */ | |
| 44 | public function rowNotIsHeaderRow() | |
| 45 |     { | |
| 46 | $strategy = new DeriveHeaderStrategy(); | |
| 47 | $fileObject = $this->getFileObject(); | |
| 48 | $strategy->getHeaders($fileObject); | |
| 49 | $fileObject->fgetcsv(); | |
| 50 | $this->assertFalse($strategy->isHeaderRow($fileObject->fgetcsv())); | |
| 51 | } | |
| 52 | ||
| 53 | /** | |
| 54 | * @test | |