/** * @test * @expectedException \RuntimeException */ public function IsInvalidWhenFieldsAreMissing() { $paymentRequest = new EcommercePaymentRequest(new FakeShaComposer()); $paymentRequest->validate(); }