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 /** * Created by IntelliJ IDEA. * User: david * Date: 16/7/6 * Time: 16:42 */ ..
Decoded Output download
<?php
/**
* Created by IntelliJ IDEA.
* User: david
* Date: 16/7/6
* Time: 16:42
*/
namespace Zan\Framework\Test\Foundation\Exception;
use Zan\Framework\Foundation\Exception\BusinessException;
class BusinessExceptionTest extends \TestCase
{
public function testIsValidCode()
{
$result = BusinessException::isValidCode(0);
$this->assertFalse($result);
$result = BusinessException::isValidCode(9999);
$this->assertFalse($result);
$result = BusinessException::isValidCode(10000);
$this->assertTrue($result);
$result = BusinessException::isValidCode(60000);
$this->assertTrue($result);
$result = BusinessException::isValidCode(60001);
$this->assertFalse($result);
$result = BusinessException::isValidCode(100000);
$this->assertFalse($result);
$result = BusinessException::isValidCode(1000000);
$this->assertFalse($result);
$result = BusinessException::isValidCode(10000000);
$this->assertFalse($result);
$result = BusinessException::isValidCode(100000000);
$this->assertTrue($result);
$result = BusinessException::isValidCode(1100000000);
$this->assertFalse($result);
}
} ?>
Did this file decode correctly?
Original Code
<?php
/**
* Created by IntelliJ IDEA.
* User: david
* Date: 16/7/6
* Time: 16:42
*/
namespace Zan\Framework\Test\Foundation\Exception;
use Zan\Framework\Foundation\Exception\BusinessException;
class BusinessExceptionTest extends \TestCase
{
public function testIsValidCode()
{
$result = BusinessException::isValidCode(0);
$this->assertFalse($result);
$result = BusinessException::isValidCode(9999);
$this->assertFalse($result);
$result = BusinessException::isValidCode(10000);
$this->assertTrue($result);
$result = BusinessException::isValidCode(60000);
$this->assertTrue($result);
$result = BusinessException::isValidCode(60001);
$this->assertFalse($result);
$result = BusinessException::isValidCode(100000);
$this->assertFalse($result);
$result = BusinessException::isValidCode(1000000);
$this->assertFalse($result);
$result = BusinessException::isValidCode(10000000);
$this->assertFalse($result);
$result = BusinessException::isValidCode(100000000);
$this->assertTrue($result);
$result = BusinessException::isValidCode(1100000000);
$this->assertFalse($result);
}
}
Function Calls
None |
Stats
MD5 | 3dc225c21ec7e84f86d6488ca3829f26 |
Eval Count | 0 |
Decode Time | 97 ms |