Esempio n. 1
0
 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());
 }
Esempio n. 2
0
								<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 
}
?>