24 lines
		
	
	
		
			561 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			561 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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);
 | |
|     }
 | |
| 
 | |
| } | 
