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: winglechen * Date: 15/12/13 * Time: 20:1..

Decoded Output download

<?php
/**
 * Created by IntelliJ IDEA.
 * User: winglechen
 * Date: 15/12/13
 * Time: 20:10
 */

namespace Zan\Framework\Test\Utilities\Types;

use Zan\Framework\Utilities\Types\Number;

class NumberTest extends \TestCase {
    public function testFloatToStingWork()
    {
        $float  = 0.03;
        $expect = '3';
        $result = Number::floatToString($float);

        $this->assertEquals($expect, $result, 'Number::floatToString fail');

        $float  = 1e7;
        $expect = '10000000';
        $result = Number::floatToString($float);

        $this->assertEquals($expect, $result, 'Number::floatToString fail');

        $float  = 3.1233;
        $expect = '31233';
        $result = Number::floatToString($float);

        $this->assertEquals($expect, $result, 'Number::floatToString fail');
    }
} ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Created by IntelliJ IDEA.
 * User: winglechen
 * Date: 15/12/13
 * Time: 20:10
 */

namespace Zan\Framework\Test\Utilities\Types;

use Zan\Framework\Utilities\Types\Number;

class NumberTest extends \TestCase {
    public function testFloatToStingWork()
    {
        $float  = 0.03;
        $expect = '3';
        $result = Number::floatToString($float);

        $this->assertEquals($expect, $result, 'Number::floatToString fail');

        $float  = 1e7;
        $expect = '10000000';
        $result = Number::floatToString($float);

        $this->assertEquals($expect, $result, 'Number::floatToString fail');

        $float  = 3.1233;
        $expect = '31233';
        $result = Number::floatToString($float);

        $this->assertEquals($expect, $result, 'Number::floatToString fail');
    }
}

Function Calls

None

Variables

None

Stats

MD5 752993f15e32d4b6dd8a29c899654f3d
Eval Count 0
Decode Time 113 ms