Exemplo n.º 1
0
 public function testReadWrittenFile()
 {
     $reader = new Reader(__DIR__ . '/../data/write.csv');
     $results = $reader->getAll()->toPrimitiveArray();
     $expected = array(array('column1' => '1test1', 'column2' => '1test2ing this out', 'column3' => '1test3'), array('column1' => '2test1', 'column2' => '2test2 ing this out ok', 'column3' => '2test3'));
     $this->assertEquals($expected, $results);
 }
Exemplo n.º 2
0
 /**
  * @dataProvider getReaders
  */
 public function testGetAll(Reader $reader)
 {
     $this->assertEquals(5, count($reader->getAll()));
 }