 e868e58d20
			
		
	
	
		e868e58d20
		
			
		
	
	
	
	
		
			
			We now can do something like: ```sh ./vendor/bin/phpunit tests/PhpSpreadsheetTests/Reader/ ```
		
			
				
	
	
		
			29 lines
		
	
	
		
			797 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			797 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Shared;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Shared\OLERead;
 | |
| use PHPUnit\Framework\TestCase;
 | |
| 
 | |
| class OLEReadTest extends TestCase
 | |
| {
 | |
|     public function testReadOleStreams()
 | |
|     {
 | |
|         $dataDir = 'tests/data/Shared/OLERead/';
 | |
|         $ole = new OLERead();
 | |
|         $ole->read('tests/data/Reader/XLS/sample.xls');
 | |
|         self::assertEquals(
 | |
|             file_get_contents($dataDir . 'wrkbook'),
 | |
|             $ole->getStream($ole->wrkbook)
 | |
|         );
 | |
|         self::assertEquals(
 | |
|             file_get_contents($dataDir . 'summary'),
 | |
|             $ole->getStream($ole->summaryInformation)
 | |
|         );
 | |
|         self::assertEquals(
 | |
|             file_get_contents($dataDir . 'document'),
 | |
|             $ole->getStream($ole->documentSummaryInformation)
 | |
|         );
 | |
|     }
 | |
| }
 |