/** * @Then my cart taxes should be :taxTotal */ public function myCartTaxesShouldBe($taxTotal) { $this->cartSummaryPage->open(); expect($this->cartSummaryPage->getTaxTotal())->toBe($taxTotal); }
function it_throws_not_equal_exception_if_tax_total_is_incorrect(CartSummaryPageInterface $cartSummaryPage) { $cartSummaryPage->open()->shouldBeCalled(); $cartSummaryPage->getTaxTotal()->willReturn('$40.00'); $this->shouldThrow(NotEqualException::class)->during('myCartTaxesShouldBe', ['$50.00']); }