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); /** * This file is part of the Zephir. * * (c) Phalcon..

Decoded Output download

<?php

declare(strict_types=1);

/**
 * This file is part of the Zephir.
 *
 * (c) Phalcon Team <[email protected]>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Extension\Properties;

use PHPUnit\Framework\TestCase;
use Stub\Properties\ExtendsPublicProperties;
use Stub\Properties\PublicProperties;

final class PublicPropertiesTest extends TestCase
{
    public function testAssertations(): void
    {
        $test = new PublicProperties();

        $this->assertNull($test->someNull);
        $this->assertNull($test->someNullInitial);
        $this->assertFalse($test->someFalse);
        $this->assertTrue($test->someTrue);
        $this->assertSame($test->someInteger, 10);
        $this->assertSame($test->someDouble, 10.25);
        $this->assertSame($test->someString, 'test');

        $this->assertIsArray($test->someEmptyArray);
        $this->assertSame([1, 2, 3, 4], $test->someArray);
    }

    public function test394Issue(): void
    {
        $test = new PublicProperties();
        $this->assertTrue($test->test394Issue());
    }

    /**
     * @issue https://github.com/zephir-lang/zephir/issues/537
     */
    public function test537Issue(): void
    {
        $test = new ExtendsPublicProperties();
        $this->assertSame($test->getSomeGetterSetterArray(), ['holy']);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

/**
 * This file is part of the Zephir.
 *
 * (c) Phalcon Team <[email protected]>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Extension\Properties;

use PHPUnit\Framework\TestCase;
use Stub\Properties\ExtendsPublicProperties;
use Stub\Properties\PublicProperties;

final class PublicPropertiesTest extends TestCase
{
    public function testAssertations(): void
    {
        $test = new PublicProperties();

        $this->assertNull($test->someNull);
        $this->assertNull($test->someNullInitial);
        $this->assertFalse($test->someFalse);
        $this->assertTrue($test->someTrue);
        $this->assertSame($test->someInteger, 10);
        $this->assertSame($test->someDouble, 10.25);
        $this->assertSame($test->someString, 'test');

        $this->assertIsArray($test->someEmptyArray);
        $this->assertSame([1, 2, 3, 4], $test->someArray);
    }

    public function test394Issue(): void
    {
        $test = new PublicProperties();
        $this->assertTrue($test->test394Issue());
    }

    /**
     * @issue https://github.com/zephir-lang/zephir/issues/537
     */
    public function test537Issue(): void
    {
        $test = new ExtendsPublicProperties();
        $this->assertSame($test->getSomeGetterSetterArray(), ['holy']);
    }
}

Function Calls

None

Variables

None

Stats

MD5 43b7c2cd3efbc4124eec286833cab187
Eval Count 0
Decode Time 113 ms