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\Information;

use PhpOffice\PhpSpreadsheet\Calculation\Information\Value;
use PHPUnit\Framework\TestCase;

class TypeTest extends TestCase
{
    public function testTypeNoArgument(): void
    {
        $result = Value::type();
        self::assertSame(1, $result);
    }

    /**
     * @dataProvider providerTYPE
     */
    public function testTYPE(int $expectedResult, mixed $value): void
    {
        $result = Value::type($value);
        self::assertSame($expectedResult, $result);
    }

    public static function providerTYPE(): array
    {
        return require 'tests/data/Calculation/Information/TYPE.php';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace PhpOffice\PhpSpreadsheetTests\Calculation\Functions\Information;

use PhpOffice\PhpSpreadsheet\Calculation\Information\Value;
use PHPUnit\Framework\TestCase;

class TypeTest extends TestCase
{
    public function testTypeNoArgument(): void
    {
        $result = Value::type();
        self::assertSame(1, $result);
    }

    /**
     * @dataProvider providerTYPE
     */
    public function testTYPE(int $expectedResult, mixed $value): void
    {
        $result = Value::type($value);
        self::assertSame($expectedResult, $result);
    }

    public static function providerTYPE(): array
    {
        return require 'tests/data/Calculation/Information/TYPE.php';
    }
}

Function Calls

None

Variables

None

Stats

MD5 981f9d0fc46dac97e829093aaccbfee3
Eval Count 0
Decode Time 85 ms