Exemplo n.º 1
0
 public function topfee($arry = false)
 {
     $topfee = new TopFee();
     $topfee->setNormal('1', '10', '1', '5')->setCustom('2', '10', '2', '5', '浙江省')->setTopFee();
     if ($arry) {
         $topfee->getData();
     }
     return $topfee;
 }
Exemplo n.º 2
0
 public function testSetNormal()
 {
     $topfee = new TopFee();
     $topfee->setNormal('1', '10', '1', '5');
     $this->assertArrayHasKey('StartStandards', $topfee->normal);
     $this->assertArrayHasKey('StartFees', $topfee->normal);
     $this->assertArrayHasKey('AddStandards', $topfee->normal);
     $this->assertArrayHasKey('AddFees', $topfee->normal);
 }