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\AlphaFilter; class AlphaTest e..
Decoded Output download
<?php
namespace Pagekit\Filter\Tests;
use Pagekit\Filter\AlphaFilter;
class AlphaTest extends \PHPUnit_Framework_TestCase
{
public function testFilter()
{
$filter = new AlphaFilter;
$values = [
/* here are the ones the filter should not change */
"abc" => "abc",
"" => "", // unicode support please
/* now the ones the filter has to fix */
"" => "",
"?" => "",
"abc!" => "abc",
" " => "",
"!$%&/()=" => "",
"abc123!?) abc" => "abcabc"
];
foreach ($values as $in => $out) {
$this->assertEquals($filter->filter($in), $out);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pagekit\Filter\Tests;
use Pagekit\Filter\AlphaFilter;
class AlphaTest extends \PHPUnit_Framework_TestCase
{
public function testFilter()
{
$filter = new AlphaFilter;
$values = [
/* here are the ones the filter should not change */
"abc" => "abc",
"" => "", // unicode support please
/* now the ones the filter has to fix */
"" => "",
"?" => "",
"abc!" => "abc",
" " => "",
"!$%&/()=" => "",
"abc123!?) abc" => "abcabc"
];
foreach ($values as $in => $out) {
$this->assertEquals($filter->filter($in), $out);
}
}
}
Function Calls
None |
Stats
MD5 | f5603748d9bb53481d7d3cf1b0d810cc |
Eval Count | 0 |
Decode Time | 83 ms |