/** * @test */ public function resetDifferentInvoiceNumberThrowsException() { $this->grossCart->setInvoiceNumber('ValidInvoiceNumber'); $this->setExpectedException('LogicException', 'You can not redeclare the invoice number of your cart.', 1413969712); $this->grossCart->setInvoiceNumber('NotValidInvoiceNumber'); }