26 lines
		
	
	
		
			612 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			612 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
 | |
| 
 | |
| use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
 | |
| use PHPUnit\Framework\TestCase;
 | |
| 
 | |
| class KurtTest extends TestCase
 | |
| {
 | |
|     /**
 | |
|      * @dataProvider providerKURT
 | |
|      *
 | |
|      * @param mixed $expectedResult
 | |
|      */
 | |
|     public function testKURT($expectedResult, ...$values): void
 | |
|     {
 | |
|         $result = Statistical::KURT(...$values);
 | |
|         self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
 | |
|     }
 | |
| 
 | |
|     public function providerKURT()
 | |
|     {
 | |
|         return require 'tests/data/Calculation/Statistical/KURT.php';
 | |
|     }
 | |
| }
 | 
