123456789101112131415161718192021222324 |
- <?php
- include_once 'classes/CsvTestImport.php';
- class CsvExcelFileTest extends TestCase {
- public function testInit()
- {
- $importer = app('CsvTestImport');
- $this->assertInstanceOf('Maatwebsite\Excel\Files\ExcelFile', $importer);
- }
- public function testGetResultsDirectlyWithCustomDelimiterSetAsProperty()
- {
- $importer = app('TestImport');
- $results = $importer->get();
- $this->assertInstanceOf('Maatwebsite\Excel\Collections\RowCollection', $results);
- $this->assertCount(5, $results);
- }
- }
|