/** * @covers Cilex\Store\Transaction::getTotalValue * @covers Cilex\Store\Transaction::add * @covers Cilex\Store\Transaction::addDiscount * @covers Cilex\Store\Transaction::getSubTotal */ public function testGetTotalValueWithDiscount() { $this->object->add(1.25); $this->object->add(1.25); $this->object->addDiscount(20, $this->object->getSubTotal()); $this->assertEquals(2.0, $this->object->getTotalValue()); }