Skip to content

Commit 454001c

Browse files
authored
Update GatewayTestCase.php
1 parent d75d2de commit 454001c

File tree

1 file changed

+20
-30
lines changed

1 file changed

+20
-30
lines changed

src/GatewayTestCase.php

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,6 @@ public function testSupportsUpdateCard()
188188
}
189189
}
190190

191-
/**
192-
* @doesNotPerformAssertions
193-
*/
194191
public function testAuthorizeParameters()
195192
{
196193
if ($this->gateway->supportsAuthorize()) {
@@ -205,12 +202,11 @@ public function testAuthorizeParameters()
205202
$request = $this->gateway->authorize();
206203
$this->assertSame($value, $request->$getter());
207204
}
205+
} else {
206+
$this->expectNotToPerformAssertions();
208207
}
209208
}
210209

211-
/**
212-
* @doesNotPerformAssertions
213-
*/
214210
public function testCompleteAuthorizeParameters()
215211
{
216212
if ($this->gateway->supportsCompleteAuthorize()) {
@@ -225,12 +221,11 @@ public function testCompleteAuthorizeParameters()
225221
$request = $this->gateway->completeAuthorize();
226222
$this->assertSame($value, $request->$getter());
227223
}
224+
} else {
225+
$this->expectNotToPerformAssertions();
228226
}
229227
}
230228

231-
/**
232-
* @doesNotPerformAssertions
233-
*/
234229
public function testCaptureParameters()
235230
{
236231
if ($this->gateway->supportsCapture()) {
@@ -245,12 +240,11 @@ public function testCaptureParameters()
245240
$request = $this->gateway->capture();
246241
$this->assertSame($value, $request->$getter());
247242
}
243+
} else {
244+
$this->expectNotToPerformAssertions();
248245
}
249246
}
250247

251-
/**
252-
* @doesNotPerformAssertions
253-
*/
254248
public function testPurchaseParameters()
255249
{
256250
if ($this->gateway->supportsPurchase()) {
@@ -265,12 +259,11 @@ public function testPurchaseParameters()
265259
$request = $this->gateway->purchase();
266260
$this->assertSame($value, $request->$getter());
267261
}
262+
} else {
263+
$this->expectNotToPerformAssertions();
268264
}
269265
}
270266

271-
/**
272-
* @doesNotPerformAssertions
273-
*/
274267
public function testCompletePurchaseParameters()
275268
{
276269
if ($this->gateway->supportsCompletePurchase()) {
@@ -285,12 +278,11 @@ public function testCompletePurchaseParameters()
285278
$request = $this->gateway->completePurchase();
286279
$this->assertSame($value, $request->$getter());
287280
}
281+
} else {
282+
$this->expectNotToPerformAssertions();
288283
}
289284
}
290285

291-
/**
292-
* @doesNotPerformAssertions
293-
*/
294286
public function testRefundParameters()
295287
{
296288
if ($this->gateway->supportsRefund()) {
@@ -305,12 +297,11 @@ public function testRefundParameters()
305297
$request = $this->gateway->refund();
306298
$this->assertSame($value, $request->$getter());
307299
}
300+
} else {
301+
$this->expectNotToPerformAssertions();
308302
}
309303
}
310304

311-
/**
312-
* @doesNotPerformAssertions
313-
*/
314305
public function testVoidParameters()
315306
{
316307
if ($this->gateway->supportsVoid()) {
@@ -325,12 +316,11 @@ public function testVoidParameters()
325316
$request = $this->gateway->void();
326317
$this->assertSame($value, $request->$getter());
327318
}
319+
} else {
320+
$this->expectNotToPerformAssertions();
328321
}
329322
}
330323

331-
/**
332-
* @doesNotPerformAssertions
333-
*/
334324
public function testCreateCardParameters()
335325
{
336326
if ($this->gateway->supportsCreateCard()) {
@@ -345,12 +335,11 @@ public function testCreateCardParameters()
345335
$request = $this->gateway->createCard();
346336
$this->assertSame($value, $request->$getter());
347337
}
338+
} else {
339+
$this->expectNotToPerformAssertions();
348340
}
349341
}
350342

351-
/**
352-
* @doesNotPerformAssertions
353-
*/
354343
public function testDeleteCardParameters()
355344
{
356345
if ($this->gateway->supportsDeleteCard()) {
@@ -365,12 +354,11 @@ public function testDeleteCardParameters()
365354
$request = $this->gateway->deleteCard();
366355
$this->assertSame($value, $request->$getter());
367356
}
357+
} else {
358+
$this->expectNotToPerformAssertions();
368359
}
369360
}
370361

371-
/**
372-
* @doesNotPerformAssertions
373-
*/
374362
public function testUpdateCardParameters()
375363
{
376364
if ($this->gateway->supportsUpdateCard()) {
@@ -385,6 +373,8 @@ public function testUpdateCardParameters()
385373
$request = $this->gateway->updateCard();
386374
$this->assertSame($value, $request->$getter());
387375
}
376+
} else {
377+
$this->expectNotToPerformAssertions();
388378
}
389379
}
390380
}

0 commit comments

Comments
 (0)