tests/MappedHeaderStrategyTest.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 88-94 (lines=7) @@ | 
                                                            
                                    | 85 |  |         ); | 
                                                            
                                    | 86 |  |     } | 
                                                            
                                    | 87 |  |  | 
                                                            
                                    | 88 |  |     private function getFileObject() : SplFileObject | 
                                                            
                                    | 89 |  |     { | 
                                                            
                                    | 90 |  |         $fileObject = new SplFileObject(__DIR__ . '/_files/basic.csv'); | 
                                                            
                                    | 91 |  |         $fileObject->setFlags(SplFileObject::READ_CSV); | 
                                                            
                                    | 92 |  |         $fileObject->setCsvControl(','); | 
                                                            
                                    | 93 |  |         return $fileObject; | 
                                                            
                                    | 94 |  |     } | 
                                                            
                                    | 95 |  |  | 
                                                            
                                    | 96 |  |     private function getStrategy() : MappedHeaderStrategy | 
                                                            
                                    | 97 |  |     { | 
                                                                        
                 
                                                            
                    
tests/ProvidedHeaderStrategyTest.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 50-56 (lines=7) @@ | 
                                                            
                                    | 47 |  |         $this->assertFalse($strategy->isHeaderRow($fileObject->fgetcsv())); | 
                                                            
                                    | 48 |  |     } | 
                                                            
                                    | 49 |  |  | 
                                                            
                                    | 50 |  |     private function getFileObject() : SplFileObject | 
                                                            
                                    | 51 |  |     { | 
                                                            
                                    | 52 |  |         $fileObject = new SplFileObject(__DIR__ . '/_files/basic.csv'); | 
                                                            
                                    | 53 |  |         $fileObject->setFlags(SplFileObject::READ_CSV); | 
                                                            
                                    | 54 |  |         $fileObject->setCsvControl(','); | 
                                                            
                                    | 55 |  |         return $fileObject; | 
                                                            
                                    | 56 |  |     } | 
                                                            
                                    | 57 |  |  | 
                                                            
                                    | 58 |  |     private function getStrategy() : ProvidedHeaderStrategy | 
                                                            
                                    | 59 |  |     { | 
                                                                        
                 
                                                            
                    
tests/DeriveHeaderStrategyTest.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 53-59 (lines=7) @@ | 
                                                            
                                    | 50 |  |         $this->assertFalse($strategy->isHeaderRow($fileObject->fgetcsv())); | 
                                                            
                                    | 51 |  |     } | 
                                                            
                                    | 52 |  |  | 
                                                            
                                    | 53 |  |     private function getFileObject() : SplFileObject | 
                                                            
                                    | 54 |  |     { | 
                                                            
                                    | 55 |  |         $fileObject = new SplFileObject(__DIR__ . '/_files/pipe_delimited.txt'); | 
                                                            
                                    | 56 |  |         $fileObject->setFlags(SplFileObject::READ_CSV); | 
                                                            
                                    | 57 |  |         $fileObject->setCsvControl('|'); | 
                                                            
                                    | 58 |  |         return $fileObject; | 
                                                            
                                    | 59 |  |     } | 
                                                            
                                    | 60 |  | } | 
                                                            
                                    | 61 |  |  |