Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1); namespace PhpOffice\PhpSpreadsheetTests\Calculation\Funct..
Decoded Output download
<?php
declare(strict_types=1);
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
class TDistTest extends AllSetupTeardown
{
/**
* @dataProvider providerTDIST
*/
public function testTDIST(mixed $expectedResult, mixed $value, mixed $degrees, mixed $tails): void
{
$this->runTestCaseReference('TDIST', $expectedResult, $value, $degrees, $tails);
}
public static function providerTDIST(): array
{
return require 'tests/data/Calculation/Statistical/TDIST.php';
}
/**
* @dataProvider providerTDistArray
*/
public function testTDistArray(array $expectedResult, string $values, string $degrees, string $tails): void
{
$calculation = Calculation::getInstance();
$formula = "=TDIST({$values}, {$degrees}, {$tails})";
$result = $calculation->_calculateFormulaValue($formula);
self::assertEqualsWithDelta($expectedResult, $result, 1.0e-14);
}
public static function providerTDistArray(): array
{
return [
'row/column vectors' => [
[
[0.020259663176916964, 0.06966298427942164, 0.040258118978631297],
[0.04051932635383393, 0.13932596855884327, 0.08051623795726259],
],
'2',
'{1.5, 3.5, 8}',
'{1; 2}',
],
];
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Statistical;
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
class TDistTest extends AllSetupTeardown
{
/**
* @dataProvider providerTDIST
*/
public function testTDIST(mixed $expectedResult, mixed $value, mixed $degrees, mixed $tails): void
{
$this->runTestCaseReference('TDIST', $expectedResult, $value, $degrees, $tails);
}
public static function providerTDIST(): array
{
return require 'tests/data/Calculation/Statistical/TDIST.php';
}
/**
* @dataProvider providerTDistArray
*/
public function testTDistArray(array $expectedResult, string $values, string $degrees, string $tails): void
{
$calculation = Calculation::getInstance();
$formula = "=TDIST({$values}, {$degrees}, {$tails})";
$result = $calculation->_calculateFormulaValue($formula);
self::assertEqualsWithDelta($expectedResult, $result, 1.0e-14);
}
public static function providerTDistArray(): array
{
return [
'row/column vectors' => [
[
[0.020259663176916964, 0.06966298427942164, 0.040258118978631297],
[0.04051932635383393, 0.13932596855884327, 0.08051623795726259],
],
'2',
'{1.5, 3.5, 8}',
'{1; 2}',
],
];
}
}
Function Calls
None |
Stats
MD5 | f4f47b81c3f35838978a874a19e4e0e3 |
Eval Count | 0 |
Decode Time | 113 ms |