Skip to content

Commit 39ec5bd

Browse files
Spelling fixes
I was nosying at thephpleague#156 & realised it was full of as-yet-unfixed spelling fixes. This PR just has the ones in the tests directory from that PR
1 parent ecc048d commit 39ec5bd

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

tests/DirectGatewayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testAuthorizeFailure()
7373
$this->assertFalse($response->isSuccessful());
7474
$this->assertFalse($response->isRedirect());
7575

76-
// With no suuccess and no redirect, there will be no transaction reference.
76+
// With no success and no redirect, there will be no transaction reference.
7777
//$this->assertSame('{"VendorTxCode":"123"}', $response->getTransactionReference());
7878
$this->assertNull($response->getTransactionReference());
7979

tests/Message/DirectAuthorizeRequestTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class DirectAuthorizeRequestTest extends TestCase
88
{
9-
// VISA incurrs a surcharge of 2.5% when used.
9+
// VISA incurs a surcharge of 2.5% when used.
1010
const SURCHARGE_XML = '<surcharges><surcharge>'
1111
. '<paymentType>VISA</paymentType><percentage>2.50</percentage>'
1212
. '</surcharge></surcharges>';
@@ -287,13 +287,13 @@ public function testMixedBasketWithSpecialChars()
287287
{
288288
$items = new \Omnipay\Common\ItemBag(array(
289289
new \Omnipay\Common\Item(array(
290-
'name' => "Denisé's Odd & Wierd £name? #12345678901234567890123456789012345678901234567890123456789012345678901234567890",
290+
'name' => "Denisé's Odd & Weird £name? #12345678901234567890123456789012345678901234567890123456789012345678901234567890",
291291
'description' => 'Description',
292292
'quantity' => 2,
293293
'price' => 4.23,
294294
)),
295295
array(
296-
'name' => "Denisé's \"Odd\" & Wierd £discount? #",
296+
'name' => "Denisé's \"Odd\" & Weird £discount? #",
297297
'description' => 'My Offer',
298298
'quantity' => 2,
299299
'price' => -0.10,
@@ -309,11 +309,11 @@ public function testMixedBasketWithSpecialChars()
309309

310310
// Names/descriptions should be max 100 characters in length, once invalid characters have been removed.
311311
$expected = '<basket><item>'
312-
. '<description>Denis\'s Odd &amp; Wierd name 123456789012345678901234567890123456789012345678901234567890123456789012345</description><quantity>2</quantity>'
312+
. '<description>Denis\'s Odd &amp; Weird name 123456789012345678901234567890123456789012345678901234567890123456789012345</description><quantity>2</quantity>'
313313
. '<unitNetAmount>4.23</unitNetAmount><unitTaxAmount>0.00</unitTaxAmount>'
314314
. '<unitGrossAmount>4.23</unitGrossAmount><totalGrossAmount>8.46</totalGrossAmount>'
315315
. '</item><discounts>'
316-
. '<discount><fixed>0.2</fixed><description>Denis\'s "Odd" Wierd discount? #</description></discount>'
316+
. '<discount><fixed>0.2</fixed><description>Denis\'s "Odd" Weird discount? #</description></discount>'
317317
. '<discount><fixed>1.6</fixed><description>1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890</description></discount>'
318318
. '</discounts></basket>';
319319

tests/Message/DirectPurchaseRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class DirectPurchaseRequestTest extends DirectAuthorizeRequestTest
88
{
9-
// VISA incurrs a surcharge of 2.5% when used.
9+
// VISA incurs a surcharge of 2.5% when used.
1010
const SURCHARGE_XML = '<surcharges><surcharge>'
1111
. '<paymentType>VISA</paymentType><percentage>2.50</percentage>'
1212
. '</surcharge></surcharges>';

tests/Message/ServerNotifyRequestTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public function testServerNotifyResponseSuccess()
6262

6363
$this->request->setSecurityKey('JEUPDN1N7E');
6464

65-
// With the security key added, the signatue check will now be valid,
66-
// i.e. an untampered inbound notification.
65+
// With the security key added, the signature check will now be valid,
66+
// i.e. an un-tampered inbound notification.
6767

6868
$this->assertTrue($this->request->isValid());
6969

@@ -123,7 +123,7 @@ public function testServerNotifyRequestFailure()
123123
$this->getHttpRequest()
124124
);
125125

126-
// The transactino reference in Response and ServerNotifyTrait
126+
// The transaction reference in Response and ServerNotifyTrait
127127
// will return null if there is no transaction data provided
128128
// by the gateway.
129129

@@ -227,7 +227,7 @@ public function testInvalid()
227227
}
228228

229229
/**
230-
* sendRequest lets you return a raw message with no additinal
230+
* sendRequest lets you return a raw message with no additional
231231
* checks on the validity of what was received.
232232
*/
233233
public function testSendResponse()

tests/Message/SharedCaptureRequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public function testTxType()
2525

2626
$this->assertSame('RELEASE', $this->request->getTxType());
2727

28-
// User authenticate explicity true.
28+
// User authenticate explicitly true.
2929

3030
$this->request->setUseAuthenticate(true);
3131

3232
$this->assertSame('AUTHORISE', $this->request->getTxType());
3333

34-
// User authenticate explicity false (back to the default).
34+
// User authenticate explicitly false (back to the default).
3535

3636
$this->request->setUseAuthenticate(false);
3737

0 commit comments

Comments
 (0)