 e868e58d20
			
		
	
	
		e868e58d20
		
			
		
	
	
	
	
		
			
			We now can do something like: ```sh ./vendor/bin/phpunit tests/PhpSpreadsheetTests/Reader/ ```
		
			
				
	
	
		
			32 lines
		
	
	
		
			760 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			760 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\MathTrig;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Calculation\Functions;
 | |
| use PhpOffice\PhpSpreadsheet\Calculation\MathTrig;
 | |
| use PHPUnit\Framework\TestCase;
 | |
| 
 | |
| class GcdTest extends TestCase
 | |
| {
 | |
|     protected function setUp(): void
 | |
|     {
 | |
|         Functions::setCompatibilityMode(Functions::COMPATIBILITY_EXCEL);
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @dataProvider providerGCD
 | |
|      *
 | |
|      * @param mixed $expectedResult
 | |
|      */
 | |
|     public function testGCD($expectedResult, ...$args)
 | |
|     {
 | |
|         $result = MathTrig::GCD(...$args);
 | |
|         $this->assertEqualsWithDelta($expectedResult, $result, 1E-12);
 | |
|     }
 | |
| 
 | |
|     public function providerGCD()
 | |
|     {
 | |
|         return require 'tests/data/Calculation/MathTrig/GCD.php';
 | |
|     }
 | |
| }
 |