Skip to content

Commit 6dcb00e

Browse files
committed
Dropped PHP<7.2 support. Fixed phpunit tests.
1 parent 27772de commit 6dcb00e

File tree

6 files changed

+29
-66
lines changed

6 files changed

+29
-66
lines changed

Diff for: .github/workflows/build.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [7.1, 7.2, 7.3, 7.4, 8.0]
18+
php: [7.2, 7.3, 7.4, 8.0]
1919
symfony: [^3.4, ^4.4, ^5.2]
20-
exclude:
21-
- php: 7.1
22-
symfony: ^5.2
2320

2421
env:
2522
APP_ENV: test

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor
2-
/composer.lock
2+
/composer.lock
3+
/.phpunit.result.cache

Diff for: composer.json

+17-22
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name" : "ekyna/payum-monetico",
3-
"description" : "Payum Monetico (Credit Mutuel/CIC) gateway",
4-
"type" : "component",
5-
"authors" : [
2+
"name": "ekyna/payum-monetico",
3+
"description": "Payum Monetico (Credit Mutuel/CIC) gateway",
4+
"type": "component",
5+
"authors": [
66
{
7-
"name" : "Etienne Dauvergne",
8-
"homepage" : "http://ekyna.com"
7+
"name": "Etienne Dauvergne",
8+
"homepage": "https://ekyna.com"
99
}
1010
],
1111
"keywords": [
@@ -15,28 +15,23 @@
1515
"credit mutuel",
1616
"cic"
1717
],
18-
"homepage" : "https://github.com/ekyna/PayumMonetico",
19-
"license" : "MIT",
20-
"require" : {
21-
"php" : "^7.1|^8.0",
18+
"homepage": "https://github.com/ekyna/PayumMonetico",
19+
"license": "MIT",
20+
"require": {
21+
"php": "^7.2|^8.0",
2222
"ext-json": "*",
2323
"payum/core": "^1.5",
24-
"psr/log": "~1.0|~2.0",
25-
"symfony/options-resolver": "~3.0|~4.0|~5.0",
26-
"sokil/php-isocodes": "~2.0|~3.0"
24+
"psr/log": "^1.0|^2.0",
25+
"symfony/options-resolver": "^3.4|^4.4|^5.2",
26+
"sokil/php-isocodes": "^2.0|^3.0"
2727
},
2828
"require-dev": {
2929
"php-http/guzzle6-adapter": "^1.1|^2.0",
30-
"phpunit/phpunit": "^7|^8|^9"
30+
"phpunit/phpunit": "^7.0|^8.0|^9.0"
3131
},
32-
"autoload" : {
33-
"psr-4" : {
34-
"Ekyna\\Component\\Payum\\Monetico\\" : "src/"
35-
}
36-
},
37-
"extra": {
38-
"branch-alias": {
39-
"dev-master": "1.5.x-dev"
32+
"autoload": {
33+
"psr-4": {
34+
"Ekyna\\Component\\Payum\\Monetico\\": "src/"
4035
}
4136
}
4237
}

Diff for: phpunit.xml

+8-17
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="true"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
44
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
processIsolation="false"
9-
stopOnFailure="false"
10-
syntaxCheck="false"
115
bootstrap="tests/bootstrap.php">
126

7+
<coverage processUncoveredFiles="true">
8+
<include>
9+
<directory suffix=".php">./src</directory>
10+
</include>
11+
</coverage>
12+
1313
<testsuites>
1414
<testsuite name="Ekyna Payum Monetico Component Test Suite">
1515
<directory>./tests</directory>
1616
</testsuite>
1717
</testsuites>
1818

19-
<filter>
20-
<whitelist>
21-
<directory>./src</directory>
22-
<exclude>
23-
<directory>./tests</directory>
24-
<directory>./vendor</directory>
25-
</exclude>
26-
</whitelist>
27-
</filter>
2819
</phpunit>

Diff for: tests/Action/AbstractActionTest.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@
1515
*/
1616
abstract class AbstractActionTest extends GenericActionTest
1717
{
18-
/**
19-
* @test
20-
*/
21-
public function couldBeConstructedWithoutAnyArguments()
22-
{
23-
parent::couldBeConstructedWithoutAnyArguments();
24-
25-
$this->assertTrue(true);
26-
}
27-
2818
/**
2919
* @return MockObject&GatewayInterface
3020
*/
@@ -48,4 +38,4 @@ protected function createApiMock()
4838
{
4939
return $this->getMockBuilder(Api::class)->getMock();
5040
}
51-
}
41+
}

Diff for: tests/Action/Api/PaymentFormActionTest.php

-11
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ protected function setUp(): void
2323
$this->action = new $this->actionClass('template');
2424
}
2525

26-
/**
27-
* @test
28-
*/
29-
public function couldBeConstructedWithoutAnyArguments()
30-
{
31-
// TODO Remove this test...
32-
//$this->markTestSkipped();
33-
$action = new $this->actionClass('template');
34-
$this->assertInstanceOf(PaymentFormAction::class, $action);
35-
}
36-
3726
/**
3827
* @test
3928
*/

0 commit comments

Comments
 (0)