예제 #1
0
 public function testFileImport()
 {
     $imp = new \Helpers\CsvImporter('tests/DBMappers/AppointmentItemMapperData.csv', true, ',');
     $data = $imp->get();
     $this->assertTrue(is_array($data));
     print_r($data);
 }
예제 #2
0
 public function succeedFormProvider()
 {
     $imp = new \Helpers\CsvImporter('tests/Controllers/BookSingleEventRight.csv', true, ',');
     $formDataRight = $imp->get();
     $imp = new \Helpers\CsvImporter('tests/Controllers/BookSingleEventRightEvents.csv', true, ',');
     $evtDataRight = $imp->get();
     $result = array(array($formDataRight[0], $evtDataRight[0]));
     //print_r($result);
     return $result;
 }