示例#1
0
 /**
  * @test
  */
 public function getterShouldReturnConfiguredData()
 {
     $address = $this->getMock('PHPSC\\PagSeguro\\Customer\\Address', [], [], '', false);
     $shipping = new Shipping(Type::TYPE_PAC, $address, '10.31');
     $this->assertEquals(Type::TYPE_PAC, $shipping->getType());
     $this->assertSame($address, $shipping->getAddress());
     $this->assertEquals(10.31, $shipping->getCost());
 }
示例#2
0
文件: FedEx.php 项目: anas/feedstore
 public function getCost()
 {
     return parent::getCost() + $this->base;
 }
示例#3
0
文件: EAndA.php 项目: anas/feedstore
 public function getCost()
 {
     //$this->sendXML();
     return parent::getCost() + $this->base;
 }