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 namespace Pagekit\Filter\Tests; use Pagekit\Filter\BooleanFilter; class BooleanTe..
Decoded Output download
<?php
namespace Pagekit\Filter\Tests;
use Pagekit\Filter\BooleanFilter;
class BooleanTest extends \PHPUnit_Framework_TestCase
{
public function testFilter()
{
$filter = new BooleanFilter;
$values = [
0 => false,
"" => false,
"1" => true
];
foreach ($values as $in => $out) {
$this->assertSame($filter->filter($in), $out);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pagekit\Filter\Tests;
use Pagekit\Filter\BooleanFilter;
class BooleanTest extends \PHPUnit_Framework_TestCase
{
public function testFilter()
{
$filter = new BooleanFilter;
$values = [
0 => false,
"" => false,
"1" => true
];
foreach ($values as $in => $out) {
$this->assertSame($filter->filter($in), $out);
}
}
}
Function Calls
None |
Stats
MD5 | 97beca5e550266aa7826c20d2fcb293c |
Eval Count | 0 |
Decode Time | 70 ms |