|
@@ -12,7 +12,7 @@ define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
|
|
require_once (BASE_ROOT_PATH . '/fooder.php');
|
|
require_once (BASE_ROOT_PATH . '/fooder.php');
|
|
require_once (BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
require_once (BASE_ROOT_PATH . '/helper/util_helper.php');
|
|
|
|
|
|
-class orderTest extends PHPUnit_Framework_TestCase
|
|
|
|
|
|
+class TestOrder extends PHPUnit_Framework_TestCase
|
|
{
|
|
{
|
|
public static function setUpBeforeClass()
|
|
public static function setUpBeforeClass()
|
|
{
|
|
{
|
|
@@ -146,4 +146,9 @@ class orderTest extends PHPUnit_Framework_TestCase
|
|
$x = json_encode($y);
|
|
$x = json_encode($y);
|
|
$x = json_decode($x,true);
|
|
$x = json_decode($x,true);
|
|
}
|
|
}
|
|
|
|
+ public function testBonusRate()
|
|
|
|
+ {
|
|
|
|
+ $data = 'a:2:{i:50;d:5.1799999999999997;i:30;d:17.59;}';
|
|
|
|
+ $x = unserialize($data);
|
|
|
|
+ }
|
|
}
|
|
}
|