Exemple #1
0
 public function testGetGrossAmount()
 {
     $item = new Item();
     $tax = new Tax();
     $tax->setValue(20);
     $item->setUnitaryCost(80);
     $item->setQuantity(1);
     $item->addTax($tax);
     $this->assertEquals(96, $item->getGrossAmount());
 }