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 Phalcon Framework. * * (c) Phalcon Team <team@pha..
Decoded Output download
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Tests\Integration\Mvc\View\Engine\Volt\Compiler;
use IntegrationTester;
use Phalcon\Mvc\View\Engine\Volt\Compiler;
use Phalcon\Tests\Fixtures\Traits\DiTrait;
/**
* Class ExpressionCest
*/
class ExpressionCest
{
use DiTrait;
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: expression()
*
* @author Phalcon Team <[email protected]>
* @since 2022-07-01
*/
public function mvcViewEngineVoltCompilerExpression(IntegrationTester $I)
{
$I->wantToTest('Mvc\View\Engine\Volt\Compiler - expression()');
$this->setNewFactoryDefault();
$volt = new Compiler();
$volt->setDI($this->container);
// title("
", "
")
$source = [
[
'expr' => [
'type' => 260,
'value' => " ",
'file' => 'eval code',
'line' => 1,
],
'file' => 'eval code',
'line' => 1,
],
[
'expr' => [
'type' => 260,
'value' => "
",
'file' => 'eval code',
'line' => 1,
],
'file' => 'eval code',
'line' => 1,
]
];
$expected = "\" \", \"
\"";
$actual = $volt->expression($source, true);
$I->assertEquals($expected, $actual);
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Tests\Integration\Mvc\View\Engine\Volt\Compiler;
use IntegrationTester;
use Phalcon\Mvc\View\Engine\Volt\Compiler;
use Phalcon\Tests\Fixtures\Traits\DiTrait;
/**
* Class ExpressionCest
*/
class ExpressionCest
{
use DiTrait;
/**
* Tests Phalcon\Mvc\View\Engine\Volt\Compiler :: expression()
*
* @author Phalcon Team <[email protected]>
* @since 2022-07-01
*/
public function mvcViewEngineVoltCompilerExpression(IntegrationTester $I)
{
$I->wantToTest('Mvc\View\Engine\Volt\Compiler - expression()');
$this->setNewFactoryDefault();
$volt = new Compiler();
$volt->setDI($this->container);
// title("\r\n", "\n\n")
$source = [
[
'expr' => [
'type' => 260,
'value' => "\t",
'file' => 'eval code',
'line' => 1,
],
'file' => 'eval code',
'line' => 1,
],
[
'expr' => [
'type' => 260,
'value' => "\n\n",
'file' => 'eval code',
'line' => 1,
],
'file' => 'eval code',
'line' => 1,
]
];
$expected = "\"\t\", \"\n\n\"";
$actual = $volt->expression($source, true);
$I->assertEquals($expected, $actual);
}
}
Function Calls
None |
Stats
MD5 | bdb7bf7b2d8e9ef2ce1065efa5549dcc |
Eval Count | 0 |
Decode Time | 91 ms |