@@ -249,23 +249,25 @@ public function testCompletePurchaseError()
249249 }
250250
251251 /**
252- * @expectedException Omnipay\Common\Exception\InvalidResponseException
253- * @expectedExceptionMessage Invalid response from payment gateway (no data)
252+ * @doesNotPerformAssertions
254253 */
255254 public function testCompletePurchaseInvalidNoParameters ()
256255 {
256+ $ this ->expectException ('Omnipay\Common\Exception\InvalidResponseException ' );
257+ $ this ->expectExceptionMessage ('Invalid response from payment gateway (no data) ' );
257258 $ this ->response = new CompletePurchaseResponse (
258259 $ this ->getMockRequest (),
259260 array ()
260261 );
261262 }
262263
263264 /**
264- * @expectedException Omnipay\Common\Exception\InvalidResponseException
265- * @expectedExceptionMessage Invalid response from payment gateway (no data)
265+ * @doesNotPerformAssertions
266266 */
267267 public function testCompletePurchaseInvalidNoDecision ()
268268 {
269+ $ this ->expectException ('Omnipay\Common\Exception\InvalidResponseException ' );
270+ $ this ->expectExceptionMessage ('Invalid response from payment gateway (no data) ' );
269271 $ this ->response = new CompletePurchaseResponse (
270272 $ this ->getMockRequest (),
271273 array (
@@ -276,11 +278,12 @@ public function testCompletePurchaseInvalidNoDecision()
276278 }
277279
278280 /**
279- * @expectedException Omnipay\Common\Exception\InvalidResponseException
280- * @expectedExceptionMessage Invalid response from payment gateway (no data)
281+ * @doesNotPerformAssertions
281282 */
282283 public function testCompletePurchaseInvalidNoSignatureDefinition ()
283284 {
285+ $ this ->expectException ('Omnipay\Common\Exception\InvalidResponseException ' );
286+ $ this ->expectExceptionMessage ('Invalid response from payment gateway (no data) ' );
284287 $ this ->response = new CompletePurchaseResponse (
285288 $ this ->getMockRequest (),
286289 array (
@@ -291,11 +294,12 @@ public function testCompletePurchaseInvalidNoSignatureDefinition()
291294 }
292295
293296 /**
294- * @expectedException Omnipay\Common\Exception\InvalidResponseException
295- * @expectedExceptionMessage Invalid response from payment gateway (no data)
297+ * @doesNotPerformAssertions
296298 */
297299 public function testCompletePurchaseInvalidNoSignature ()
298300 {
301+ $ this ->expectException ('Omnipay\Common\Exception\InvalidResponseException ' );
302+ $ this ->expectExceptionMessage ('Invalid response from payment gateway (no data) ' );
299303 $ this ->response = new CompletePurchaseResponse (
300304 $ this ->getMockRequest (),
301305 array (
@@ -306,27 +310,30 @@ public function testCompletePurchaseInvalidNoSignature()
306310 }
307311
308312 /**
309- * @expectedException Omnipay\Common\Exception\InvalidResponseException
310- * @expectedExceptionMessage Invalid response from payment gateway (no data)
313+ * @doesNotPerformAssertions
311314 */
312315 public function testCompletePurchaseInvalidEmptySignature ()
313316 {
317+ $ this ->expectException ('Omnipay\Common\Exception\InvalidResponseException ' );
318+ $ this ->expectExceptionMessage ('Invalid response from payment gateway (no data) ' );
314319 $ this ->response = new CompletePurchaseResponse (
315320 $ this ->getMockRequest (),
316321 array (
317322 'decision ' => 'ERROR ' ,
318323 'signed_field_names ' => 'decision ' ,
319324 'signature ' => '' ,
320- )
325+ )
321326 );
322327 }
323328
324329 /**
325- * @expectedException Omnipay\Common\Exception\InvalidResponseException
326- * @expectedExceptionMessage Invalid response from payment gateway (signature mismatch)
330+ * @doesNotPerformAssertions
327331 */
328332 public function testCompletePurchaseInvalidSignature ()
329333 {
334+ $ this ->expectException ('Omnipay\Common\Exception\InvalidResponseException ' );
335+ $ this ->expectExceptionMessage ('Invalid response from payment gateway (signature mismatch) ' );
336+
330337 $ this ->getMockRequest ()->shouldReceive ('getSecretKey ' )->once ()->andReturn ($ this ->testSecretKey );
331338
332339 $ this ->response = new CompletePurchaseResponse (
0 commit comments