Exemple #1
0
 /**
  * open a csv file to read
  *
  * @param  string|resource $file filename or stream resource, default = null
  * @return CsvReader
  */
 public function open($file = null)
 {
     parent::open($file);
     $this->detectEncoding();
     $this->transcoder = new Transcoder($this->detectedEncoding);
     return $this;
 }
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testOpenNoExistingFile()
 {
     $this->assertInstanceOf('CSanquer\\ColibriCsv\\AbstractCsv', $this->structure->open(__DIR__ . '/Fixtures/abc.csv'));
 }
 /**
  * open a csv file to read
  *
  * @param  string|resource $file filename or stream resource, default = null
  * @return CsvReader
  */
 public function open($file = null)
 {
     parent::open($file);
     $this->detectEncoding();
     return $this;
 }