示例#1
0
 public function testAddingShippingWithNoAlternativeName()
 {
     $order = new Order(10, array(array("hello", 123.2)));
     $this->assertEquals($order->hasShipping(), false);
     $order->addShipping(12);
     $this->assertEquals($order->hasShipping(), true);
     $this->assertEquals($order->getShippingPrice(), 12);
     $this->assertEquals($order->getShippingAltName(), "Shipping");
 }