shouldReceive('dispatch'); $this->cart = new Cart( new SessionMock(), $events, 'shopping', 'SAMPLESESSIONKEY', require(__DIR__.'/helpers/configMockOtherFormat.php') ); } public function tearDown(): void { m::close(); } public function test_item_get_sum_price_using_property() { $this->cart->add(455, 'Sample Item', 100.99, 2, array()); $item = $this->cart->get(455); $this->assertEquals('201,980', $item->getPriceSum(), 'Item summed price should be 201.98'); } public function test_item_get_sum_price_using_array_style() { $this->cart->add(455, 'Sample Item', 100.99, 2, array()); $item = $this->cart->get(455); $this->assertEquals('201,980', $item->getPriceSum(), 'Item summed price should be 201.98'); } }