Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/DirectGatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function testAuthorizeFailure()
$this->assertFalse($response->isSuccessful());
$this->assertFalse($response->isRedirect());

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

Expand Down
10 changes: 5 additions & 5 deletions tests/Message/DirectAuthorizeRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class DirectAuthorizeRequestTest extends TestCase
{
// VISA incurrs a surcharge of 2.5% when used.
// VISA incurs a surcharge of 2.5% when used.
const SURCHARGE_XML = '<surcharges><surcharge>'
. '<paymentType>VISA</paymentType><percentage>2.50</percentage>'
. '</surcharge></surcharges>';
Expand Down Expand Up @@ -287,13 +287,13 @@ public function testMixedBasketWithSpecialChars()
{
$items = new \Omnipay\Common\ItemBag(array(
new \Omnipay\Common\Item(array(
'name' => "Denisé's Odd & Wierd £name? #12345678901234567890123456789012345678901234567890123456789012345678901234567890",
'name' => "Denisé's Odd & Weird £name? #12345678901234567890123456789012345678901234567890123456789012345678901234567890",
'description' => 'Description',
'quantity' => 2,
'price' => 4.23,
)),
array(
'name' => "Denisé's \"Odd\" & Wierd £discount? #",
'name' => "Denisé's \"Odd\" & Weird £discount? #",
'description' => 'My Offer',
'quantity' => 2,
'price' => -0.10,
Expand All @@ -309,11 +309,11 @@ public function testMixedBasketWithSpecialChars()

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

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/DirectPurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class DirectPurchaseRequestTest extends DirectAuthorizeRequestTest
{
// VISA incurrs a surcharge of 2.5% when used.
// VISA incurs a surcharge of 2.5% when used.
const SURCHARGE_XML = '<surcharges><surcharge>'
. '<paymentType>VISA</paymentType><percentage>2.50</percentage>'
. '</surcharge></surcharges>';
Expand Down
8 changes: 4 additions & 4 deletions tests/Message/ServerNotifyRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public function testServerNotifyResponseSuccess()

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

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

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

Expand Down Expand Up @@ -123,7 +123,7 @@ public function testServerNotifyRequestFailure()
$this->getHttpRequest()
);

// The transactino reference in Response and ServerNotifyTrait
// The transaction reference in Response and ServerNotifyTrait
// will return null if there is no transaction data provided
// by the gateway.

Expand Down Expand Up @@ -227,7 +227,7 @@ public function testInvalid()
}

/**
* sendRequest lets you return a raw message with no additinal
* sendRequest lets you return a raw message with no additional
* checks on the validity of what was received.
*/
public function testSendResponse()
Expand Down
4 changes: 2 additions & 2 deletions tests/Message/SharedCaptureRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public function testTxType()

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

// User authenticate explicity true.
// User authenticate explicitly true.

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

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

// User authenticate explicity false (back to the default).
// User authenticate explicitly false (back to the default).

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

Expand Down