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\Financial;
use PhpOffice\PhpSpreadsheet\Calculation\Financial\Helpers;
use PHPUnit\Framework\TestCase;
class HelpersTest extends TestCase
{
/**
* @dataProvider providerDaysPerYear
*/
public function testDaysPerYear(mixed $expectedResult, int $year, int|string $basis): void
{
$result = Helpers::daysPerYear($year, $basis);
self::assertSame($expectedResult, $result);
}
public static function providerDaysPerYear(): array
{
return require 'tests/data/Calculation/Financial/DaysPerYear.php';
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Financial;
use PhpOffice\PhpSpreadsheet\Calculation\Financial\Helpers;
use PHPUnit\Framework\TestCase;
class HelpersTest extends TestCase
{
/**
* @dataProvider providerDaysPerYear
*/
public function testDaysPerYear(mixed $expectedResult, int $year, int|string $basis): void
{
$result = Helpers::daysPerYear($year, $basis);
self::assertSame($expectedResult, $result);
}
public static function providerDaysPerYear(): array
{
return require 'tests/data/Calculation/Financial/DaysPerYear.php';
}
}
Function Calls
None |
Stats
MD5 | 5b240932405933f794c0a28d2ec29d90 |
Eval Count | 0 |
Decode Time | 75 ms |