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