public function should_add_discount() { $this->product->discount(new PercentageDiscount(20)); $this->assertInstanceOf('PhilipBrown\\Basket\\Discounts\\PercentageDiscount', $this->product->discount); }