CsvExcelFileTest.php 561 B

123456789101112131415161718192021222324
  1. <?php
  2. include_once 'classes/CsvTestImport.php';
  3. class CsvExcelFileTest extends TestCase {
  4. public function testInit()
  5. {
  6. $importer = app('CsvTestImport');
  7. $this->assertInstanceOf('Maatwebsite\Excel\Files\ExcelFile', $importer);
  8. }
  9. public function testGetResultsDirectlyWithCustomDelimiterSetAsProperty()
  10. {
  11. $importer = app('TestImport');
  12. $results = $importer->get();
  13. $this->assertInstanceOf('Maatwebsite\Excel\Collections\RowCollection', $results);
  14. $this->assertCount(5, $results);
  15. }
  16. }