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 /** * This file is part of the Zephir. * * (c) Phalcon Team <[email protected]..

Decoded Output download

<?php

/**
 * 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.
 */

declare(strict_types=1);

namespace Extension;

use PHPUnit\Framework\TestCase;
use Stub\ArrayManipulation;

final class ArrayManipulationTest extends TestCase
{
    public function testArrayFill(): void
    {
        $class = new ArrayManipulation();
        $array = $class->arrayFillMany();

        $this->assertIsArray($array);
        $this->assertCount(1000000, $array);
    }

    /**
     * @issue https://github.com/zephir-lang/zephir/issues/774
     */
    public function testIssue774(): void
    {
        $class = new ArrayManipulation();

        $this->assertSame(['prop0' => 0, 'prop1' => 1], $class->issue774());
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

/**
 * 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.
 */

declare(strict_types=1);

namespace Extension;

use PHPUnit\Framework\TestCase;
use Stub\ArrayManipulation;

final class ArrayManipulationTest extends TestCase
{
    public function testArrayFill(): void
    {
        $class = new ArrayManipulation();
        $array = $class->arrayFillMany();

        $this->assertIsArray($array);
        $this->assertCount(1000000, $array);
    }

    /**
     * @issue https://github.com/zephir-lang/zephir/issues/774
     */
    public function testIssue774(): void
    {
        $class = new ArrayManipulation();

        $this->assertSame(['prop0' => 0, 'prop1' => 1], $class->issue774());
    }
}

Function Calls

None

Variables

None

Stats

MD5 9f3eb428be9ca2db67ea579c1b460c12
Eval Count 0
Decode Time 100 ms