public function testComputesReducedVatForTheRightCountry() { $shoppingCart = new ShoppingCart(new Austria()); $article = new Article(new ArticleName('Test'), new ArticleDescription(''), new Euro(1000), new ArticleTypeReduced()); $shoppingCart->add($article); $shoppingCart->add($article); $this->assertEquals(new Money(2200, new Currency('EUR')), $shoppingCart->total()); }
<img class="cerrar" src="assets/images/cerrar.png" alt=""> </p> </a> </td> <?php if ($i == 0) { ?> <!--COLUMNA TOTAL (no se repite rowspan = cantidad de items) --> <td class="total col-Total" rowspan="<?php $carrito->cantidad(); ?> "> <div class="block-num"> <p class="num "><?php $carrito->total(); ?> </p> </div> </td> <!--END / COLUMNA TOTAL --> <?php $i++; } ?> </tr> <!--end / item--> <?php } ?>