Skip to content

Commit 68e004a

Browse files
authored
Merge pull request #17 from pronamic/15-remove-directlink-integration
15 remove directlink integration
2 parents 772fa93 + ab71923 commit 68e004a

26 files changed

+297
-1009
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
/package-lock.json
1818
/node_modules/
1919

20+
# PHPUnit
21+
/.phpunit.result.cache
22+
2023
# WordPress
2124
/wordpress/
2225
/wp-content/

composer.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939
}
4040
},
4141
"require": {
42-
"php": ">=7.4",
42+
"php": ">=8.0",
4343
"ext-simplexml": "*",
4444
"pronamic/wp-http": "^1.2",
45-
"wp-pay/core": "^4.6"
45+
"wp-pay/core": "^4.13"
4646
},
4747
"require-dev": {
48+
"automattic/wordbless": "^0.4.0",
4849
"bamarni/composer-bin-plugin": "^1.8",
4950
"overtrue/phplint": "^9.0",
5051
"php-coveralls/php-coveralls": "^2.6",
@@ -53,7 +54,7 @@
5354
"pronamic/wp-coding-standards": "^2.0",
5455
"roots/wordpress": "^6.0",
5556
"wp-phpunit/wp-phpunit": "^6.1",
56-
"yoast/phpunit-polyfills": "^2.0"
57+
"yoast/phpunit-polyfills": "^1.0"
5758
},
5859
"scripts": {
5960
"coveralls": "vendor/bin/php-coveralls -v",
@@ -62,9 +63,12 @@
6263
"phplint": "vendor/bin/phplint",
6364
"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
6465
"phpstan": "vendor/bin/phpstan analyse --memory-limit=-1",
65-
"phpunit": "vendor/bin/phpunit",
66-
"post-install-cmd": "echo 'Optionally run: composer bin all install'",
67-
"post-update-cmd": "echo 'Optionally run: composer bin all update'",
66+
"phpunit": "vendor/bin/phpunit --colors=always",
67+
"post-install-cmd": "WorDBless\\Composer\\InstallDropin::copy",
68+
"post-update-cmd": [
69+
"echo 'Optionally run: composer bin all update'",
70+
"WorDBless\\Composer\\InstallDropin::copy"
71+
],
6872
"psalm": "vendor/bin/psalm"
6973
}
7074
}

phpunit.xml.dist

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit
4-
bootstrap="tests/bootstrap.php"
5-
backupGlobals="false"
6-
colors="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
4+
bootstrap="tests/bootstrap.php"
5+
backupGlobals="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
1010
>
11-
<testsuites>
12-
<testsuite name="WordPress Pay Ogone Test Suite">
13-
<directory suffix=".php">tests/src</directory>
14-
</testsuite>
15-
</testsuites>
11+
<coverage>
12+
<include>
13+
<directory suffix=".php">src</directory>
14+
</include>
15+
</coverage>
1616

17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src</directory>
20-
</whitelist>
21-
</filter>
17+
<testsuites>
18+
<testsuite name="WordPress Pay Ogone Test Suite">
19+
<directory suffix=".php">tests/src</directory>
20+
</testsuite>
21+
</testsuites>
2222

23-
<php>
24-
<env name="WP_PHPUNIT__TESTS_CONFIG" value="tests/wp-config.php"/>
25-
</php>
23+
<php>
24+
<env name="WP_PHPUNIT__TESTS_CONFIG" value="tests/wp-config.php"/>
25+
</php>
2626
</phpunit>

src/DirectLink.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/DirectLink/Client.php

Lines changed: 0 additions & 99 deletions
This file was deleted.

src/DirectLink/Config.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/DirectLink/DataHelper.php

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)