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\Unit\Tag;
use Phalcon\Tests\Fixtures\Helpers\TagSetup;
use UnitTester;
class SelectCest extends TagSetup
{
/**
* Tests Phalcon\Tag :: select()
*
* @author Cameron Hall <[email protected]>
* @since 2019-01-27
*/
public function tagSelect(UnitTester $I)
{
$I->wantToTest('Tag - select()');
$this->testFieldParameter(
$I,
'select',
[
'potato',
[
'Phalcon',
'PHP',
],
],
"<select id=\"potato\" name=\"potato\">" . PHP_EOL . "\t" .
"<option value=\"0\">Phalcon</option>" . PHP_EOL . "\t<option value=\"1\">" .
"PHP</option>" . PHP_EOL . "</select"
);
}
/**
* Tests Phalcon\Tag :: select() with no options
*
* @author Cameron Hall <[email protected]>
* @since 2019-01-27
*
* @issue https://github.com/phalcon/cphalcon/issues/13352
*/
public function tagSelectWithNoOptions(UnitTester $I)
{
$I->wantToTest('Tag - select() with no options');
$this->testFieldParameter(
$I,
'select',
[
'potato',
],
"<select id=\"potato\" name=\"potato\">" . PHP_EOL . "</select"
);
}
}
?>
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\Unit\Tag;
use Phalcon\Tests\Fixtures\Helpers\TagSetup;
use UnitTester;
class SelectCest extends TagSetup
{
/**
* Tests Phalcon\Tag :: select()
*
* @author Cameron Hall <[email protected]>
* @since 2019-01-27
*/
public function tagSelect(UnitTester $I)
{
$I->wantToTest('Tag - select()');
$this->testFieldParameter(
$I,
'select',
[
'potato',
[
'Phalcon',
'PHP',
],
],
"<select id=\"potato\" name=\"potato\">" . PHP_EOL . "\t" .
"<option value=\"0\">Phalcon</option>" . PHP_EOL . "\t<option value=\"1\">" .
"PHP</option>" . PHP_EOL . "</select"
);
}
/**
* Tests Phalcon\Tag :: select() with no options
*
* @author Cameron Hall <[email protected]>
* @since 2019-01-27
*
* @issue https://github.com/phalcon/cphalcon/issues/13352
*/
public function tagSelectWithNoOptions(UnitTester $I)
{
$I->wantToTest('Tag - select() with no options');
$this->testFieldParameter(
$I,
'select',
[
'potato',
],
"<select id=\"potato\" name=\"potato\">" . PHP_EOL . "</select"
);
}
}
Function Calls
None |
Stats
MD5 | d31353bb436434730a420d625996ad4d |
Eval Count | 0 |
Decode Time | 109 ms |