 e868e58d20
			
		
	
	
		e868e58d20
		
			
		
	
	
	
	
		
			
			We now can do something like: ```sh ./vendor/bin/phpunit tests/PhpSpreadsheetTests/Reader/ ```
		
			
				
	
	
		
			32 lines
		
	
	
		
			781 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			781 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Engineering;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Calculation\Engineering;
 | |
| use PhpOffice\PhpSpreadsheet\Calculation\Functions;
 | |
| use PHPUnit\Framework\TestCase;
 | |
| 
 | |
| class Hex2DecTest extends TestCase
 | |
| {
 | |
|     protected function setUp(): void
 | |
|     {
 | |
|         Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @dataProvider providerHEX2DEC
 | |
|      *
 | |
|      * @param mixed $expectedResult
 | |
|      */
 | |
|     public function testHEX2DEC($expectedResult, ...$args)
 | |
|     {
 | |
|         $result = Engineering::HEXTODEC(...$args);
 | |
|         $this->assertEquals($expectedResult, $result);
 | |
|     }
 | |
| 
 | |
|     public function providerHEX2DEC()
 | |
|     {
 | |
|         return require 'tests/data/Calculation/Engineering/HEX2DEC.php';
 | |
|     }
 | |
| }
 |