public function testGetTotalTax() { $item = new CartItem(); $item->quantity = 2; $item->tax = 5.0; $tax = $item->getTotalTax(); $this->assertEquals(10.0, $tax); $this->assertTrue(is_float($tax)); }