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\PropertyArray;
final class PropertyArrayTest extends TestCase
{
public function testAssertations(): void
{
$test = new PropertyArray();
$this->assertSame([1], $test->someArray);
$test->appendSome('one');
$this->assertSame([1, 'one'], $test->someArray);
}
public function testIssues1831(): void
{
$header = [
'header 1',
'header 2',
'header 3',
];
$data = [
'header 1',
'header 2',
'header 3',
'data 1',
'data 2',
'data 3',
'data 4',
'data 5',
'data 6',
'data 7',
'data 8',
];
$test = new PropertyArray();
$test->setOtherArray($data);
$this->assertSame($header, $test->testIssues1831());
}
}
?>
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\PropertyArray;
final class PropertyArrayTest extends TestCase
{
public function testAssertations(): void
{
$test = new PropertyArray();
$this->assertSame([1], $test->someArray);
$test->appendSome('one');
$this->assertSame([1, 'one'], $test->someArray);
}
public function testIssues1831(): void
{
$header = [
'header 1',
'header 2',
'header 3',
];
$data = [
'header 1',
'header 2',
'header 3',
'data 1',
'data 2',
'data 3',
'data 4',
'data 5',
'data 6',
'data 7',
'data 8',
];
$test = new PropertyArray();
$test->setOtherArray($data);
$this->assertSame($header, $test->testIssues1831());
}
}
Function Calls
None |
Stats
MD5 | 86edeba1224ec393783f1257ba74fa55 |
Eval Count | 0 |
Decode Time | 114 ms |