Skip to content

Commit 8b248df

Browse files
committed
Prepare for package separation
1 parent 3ab18dc commit 8b248df

17 files changed

+82
-17
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
*.log
2-
.DS_Store
3-
/.idea/
41
/vendor
52
composer.lock
63
composer.phar

.travis.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
8+
env:
9+
- SYMFONY_VERSION="2.1" GUZZLE_VERSION="3.1"
10+
- SYMFONY_VERSION="2.*" GUZZLE_VERSION="3.1"
11+
- SYMFONY_VERSION="2.1" GUZZLE_VERSION="3.*"
12+
- SYMFONY_VERSION="2.*" GUZZLE_VERSION="3.*"
13+
14+
before_script:
15+
- composer self-update
16+
- composer --version
17+
- composer require symfony/http-foundation:${SYMFONY_VERSION} --no-update
18+
- composer require guzzle/http:${GUZZLE_VERSION} --no-update
19+
- composer install -n --dev --prefer-source
20+
21+
script: vendor/bin/phpcs --standard=PSR2 src && vendor/bin/phpunit --coverage-text

composer.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "omnipay/sagepay",
3+
"type": "library",
4+
"description": "Sage Pay driver for the Omnipay PHP payment processing library",
5+
"keywords": [
6+
"gateway",
7+
"merchant",
8+
"omnipay",
9+
"pay",
10+
"payment",
11+
"purchase",
12+
"sage pay",
13+
"sagepay"
14+
],
15+
"homepage": "https://github.com/omnipay/sagepay",
16+
"license": "MIT",
17+
"authors": [
18+
{
19+
"name": "Adrian Macneil",
20+
"email": "[email protected]"
21+
},
22+
{
23+
"name": "Omnipay Contributors",
24+
"homepage": "https://github.com/omnipay/sagepay/contributors"
25+
}
26+
],
27+
"autoload": {
28+
"psr-0": { "Omnipay\\SagePay\\" : "src/" }
29+
},
30+
"require": {
31+
"omnipay/common": "2.*"
32+
},
33+
"require-dev": {
34+
"guzzle/plugin-mock": "~3.1",
35+
"mockery/mockery": "~0.8",
36+
"omnipay/tests": "2.*",
37+
"phpunit/phpunit": "~3.7.16",
38+
"squizlabs/php_codesniffer": "~1.4.4"
39+
},
40+
"extra": {
41+
"branch-alias": {
42+
"dev-master": "2.0.x-dev"
43+
}
44+
},
45+
"minimum-stability": "dev",
46+
"prefer-stable": true
47+
}

tests/Omnipay/SagePay/DirectGatewayTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay;
44

5-
use Omnipay\GatewayTestCase;
5+
use Omnipay\Tests\GatewayTestCase;
66

77
class DirectGatewayTest extends GatewayTestCase
88
{

tests/Omnipay/SagePay/Message/DirectAuthorizeRequestTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay\Message;
44

5-
use Omnipay\TestCase;
5+
use Omnipay\Tests\TestCase;
66

77
class DirectAuthorizeRequestTest extends TestCase
88
{

tests/Omnipay/SagePay/Message/RefundRequestTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay\Message;
44

5-
use Omnipay\TestCase;
5+
use Omnipay\Tests\TestCase;
66

77
class RefundRequestTest extends TestCase
88
{

tests/Omnipay/SagePay/Message/ResponseTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay\Message;
44

5-
use Omnipay\TestCase;
5+
use Omnipay\Tests\TestCase;
66

77
class ResponseTest extends TestCase
88
{

tests/Omnipay/SagePay/Message/ServerAuthorizeResponseTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay\Message;
44

5-
use Omnipay\TestCase;
5+
use Omnipay\Tests\TestCase;
66

77
class ServerAuthorizeResponseTest extends TestCase
88
{

tests/Omnipay/SagePay/Message/ServerCompleteAuthorizeResponseTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay\Message;
44

5-
use Omnipay\TestCase;
5+
use Omnipay\Tests\TestCase;
66
use Mockery as m;
77

88
class ServerCompleteAuthorizeResponseTest extends TestCase

tests/Omnipay/SagePay/Mock/CaptureFailure.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Cache-control: private
1010

1111
VPSProtocol=2.23
1212
Status=INVALID
13-
StatusDetail=You are trying to RELEASE a transaction that has already been RELEASEd or ABORTed.
13+
StatusDetail=You are trying to RELEASE a transaction that has already been RELEASEd or ABORTed.

tests/Omnipay/SagePay/Mock/CaptureSuccess.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Cache-control: private
1010

1111
VPSProtocol=2.23
1212
Status=OK
13-
StatusDetail=The transaction was RELEASEed successfully.
13+
StatusDetail=The transaction was RELEASEed successfully.

tests/Omnipay/SagePay/Mock/DirectPurchase3dSecure.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Status=3DAUTH
1313
3DSecureStatus=OK
1414
MD=065379457749061954
1515
ACSURL=https://test.sagepay.com/Simulator/3DAuthPage.asp
16-
PAReq=BSkaFwYFFTYAGyFbAB0LFRYWBwsBZw0EGwECEX9YRGFWc08pJCVVKgAANS0KADoZCCAMBnIeOxcWRg0LERdOOTQRDFRdVHNYUgwTMBsBCxABJw4DJHE+ERgPCi8MVC0HIAROCAAfBUk4ER89DD0IWDkvMQ1VdFwoUFgwXVYvbHgvMkdBXXNbQGIjdl1ZUEc1XSwqAAgUUicYBDYcB3I2AjYjIzsn
16+
PAReq=BSkaFwYFFTYAGyFbAB0LFRYWBwsBZw0EGwECEX9YRGFWc08pJCVVKgAANS0KADoZCCAMBnIeOxcWRg0LERdOOTQRDFRdVHNYUgwTMBsBCxABJw4DJHE+ERgPCi8MVC0HIAROCAAfBUk4ER89DD0IWDkvMQ1VdFwoUFgwXVYvbHgvMkdBXXNbQGIjdl1ZUEc1XSwqAAgUUicYBDYcB3I2AjYjIzsn

tests/Omnipay/SagePay/Mock/DirectPurchaseFailure.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Cache-control: private
1010

1111
VPSProtocol=2.23
1212
Status=INVALID
13-
StatusDetail=The VendorTxCode '984297' has been used before. Each transaction you send should have a unique VendorTxCode.
13+
StatusDetail=The VendorTxCode '984297' has been used before. Each transaction you send should have a unique VendorTxCode.

tests/Omnipay/SagePay/Mock/DirectPurchaseSuccess.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ TxAuthNo=9962
1717
AVSCV2=ALL MATCH
1818
AddressResult=MATCHED
1919
PostCodeResult=MATCHED
20-
CV2Result=MATCHED
20+
CV2Result=MATCHED

tests/Omnipay/SagePay/Mock/ServerPurchaseFailure.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Cache-control: private
1010

1111
VPSProtocol=2.23
1212
Status=INVALID
13-
StatusDetail=The Description field should be between 1 and 100 characters long.
13+
StatusDetail=The Description field should be between 1 and 100 characters long.

tests/Omnipay/SagePay/Mock/ServerPurchaseSuccess.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Status=OK
1313
StatusDetail=Server transaction registered successfully.
1414
VPSTxId={1E7D9C70-DBE2-4726-88EA-D369810D801D}
1515
SecurityKey=IK776BWNHN
16-
NextURL=https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}
16+
NextURL=https://test.sagepay.com/Simulator/VSPServerPaymentPage.asp?TransactionID={1E7D9C70-DBE2-4726-88EA-D369810D801D}

tests/Omnipay/SagePay/ServerGatewayTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Omnipay\SagePay;
44

5-
use Omnipay\GatewayTestCase;
5+
use Omnipay\Tests\GatewayTestCase;
66

77
class ServerGatewayTest extends GatewayTestCase
88
{

0 commit comments

Comments
 (0)