Skip to content

Commit c38e546

Browse files
committed
Create explicit properties to fix dynamic properties errors.
1 parent aaf8a90 commit c38e546

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
composer.lock
33
composer.phar
44
phpunit.xml
5+
/.phpunit.result.cache

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
},
3636
"require": {
3737
"php": "^7.3|^8",
38-
"omnipay/common": "~3.0"
38+
"omnipay/common": "~3.0",
39+
"symfony/http-client": "^6.0"
3940
},
4041
"require-dev": {
4142
"omnipay/tests": "^4.1",
4243
"squizlabs/php_codesniffer": "^3",
43-
"phpspec/prophecy-phpunit": "^2.0"
44+
"phpspec/prophecy-phpunit": "^2.0",
45+
"http-interop/http-factory-guzzle": "^1.2"
4446
},
4547
"extra": {
4648
"branch-alias": {
@@ -51,5 +53,10 @@
5153
"test": "phpunit",
5254
"check-style": "phpcs -p --standard=PSR2 src/",
5355
"fix-style": "phpcbf -p --standard=PSR2 src/"
56+
},
57+
"config": {
58+
"allow-plugins": {
59+
"php-http/discovery": true
60+
}
5461
}
5562
}

tests/Message/ServerNotifyRequestTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
class ServerNotifyRequestTest extends TestCase
1313
{
14+
protected $request;
15+
1416
public function testServerNotifyResponseSuccess()
1517
{
1618
parent::setUp();

tests/ServerGatewayTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ class ServerGatewayTest extends GatewayTestCase
88
{
99
protected $error_3082_text = '3082 : The Description value is too long.';
1010

11+
protected $purchaseOptions;
12+
protected $captureOptions;
13+
protected $completePurchaseOptions;
14+
protected $voidOptions;
15+
protected $abortOptions;
16+
protected $refundOptions;
17+
protected $repeatOptions;
18+
1119
public function setUp(): void
1220
{
1321
parent::setUp();

0 commit comments

Comments
 (0)