MaxATest.php 615 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
  3. use PhpOffice\PhpSpreadsheet\Calculation\Statistical;
  4. use PHPUnit\Framework\TestCase;
  5. class MaxATest extends TestCase
  6. {
  7. /**
  8. * @dataProvider providerMAXA
  9. *
  10. * @param mixed $expectedResult
  11. */
  12. public function testMAXA($expectedResult, ...$args): void
  13. {
  14. $result = Statistical::MAXA(...$args);
  15. self::assertEqualsWithDelta($expectedResult, $result, 1E-12);
  16. }
  17. public function providerMAXA(): array
  18. {
  19. return require 'tests/data/Calculation/Statistical/MAXA.php';
  20. }
  21. }