File tree 10 files changed +35
-30
lines changed
10 files changed +35
-30
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ phpunit.xml
6
6
.directory
7
7
reports /
8
8
documents /
9
- .idea
9
+ .idea
10
+ .phpunit.result.cache
Original file line number Diff line number Diff line change 42
42
"classmap" : [" tests/OmnipayTest.php" ]
43
43
},
44
44
"require" : {
45
- "php" : " ^5.6|^7 |^8" ,
45
+ "php" : " ^7.3 |^8" ,
46
46
"php-http/client-implementation" : " ^1" ,
47
47
"php-http/message" : " ^1.5" ,
48
48
"php-http/discovery" : " ^1.2.1" ,
49
49
"symfony/http-foundation" : " ^2.1|^3|^4|^5" ,
50
50
"moneyphp/money" : " ^3.1"
51
51
},
52
52
"require-dev" : {
53
- "omnipay/tests" : " ^3 " ,
53
+ "omnipay/tests" : " ^4 " ,
54
54
"php-http/mock-client" : " ^1" ,
55
55
"squizlabs/php_codesniffer" : " ^3.5"
56
56
},
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit bootstrap =" vendor/autoload.php"
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ bootstrap =" vendor/autoload.php"
3
4
backupGlobals =" false"
4
5
backupStaticAttributes =" false"
5
6
colors =" true"
8
9
convertNoticesToExceptions =" true"
9
10
convertWarningsToExceptions =" true"
10
11
processIsolation =" false"
11
- stopOnFailure =" false" >
12
- <testsuites >
13
- <testsuite name =" Omnipay Test Suite" >
14
- <directory >tests</directory >
15
- </testsuite >
16
- </testsuites >
17
- <filter >
18
- <whitelist >
19
- <directory suffix =" .php" >src/</directory >
20
- </whitelist >
21
- </filter >
22
- <logging >
23
- <log type =" junit" target =" build/report.junit.xml" />
24
- <log type =" coverage-html" target =" build/coverage" />
25
- <log type =" coverage-text" target =" build/coverage.txt" />
26
- <log type =" coverage-clover" target =" build/logs/clover.xml" />
27
- </logging >
28
- </phpunit >
12
+ stopOnFailure =" false"
13
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
14
+ <coverage >
15
+ <include >
16
+ <directory suffix =" .php" >src/</directory >
17
+ </include >
18
+ <report >
19
+ <clover outputFile =" build/logs/clover.xml" />
20
+ <html outputDirectory =" build/coverage" />
21
+ <text outputFile =" build/coverage.txt" />
22
+ </report >
23
+ </coverage >
24
+ <testsuites >
25
+ <testsuite name =" Omnipay Test Suite" >
26
+ <directory >tests</directory >
27
+ </testsuite >
28
+ </testsuites >
29
+ <logging >
30
+ <junit outputFile =" build/report.junit.xml" />
31
+ </logging >
32
+ </phpunit >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class AbstractGatewayTest extends TestCase
13
13
/** @var \Omnipay\Common\AbstractGateway */
14
14
protected $ gateway ;
15
15
16
- public function setUp ()
16
+ public function setUp () : void
17
17
{
18
18
$ this ->gateway = new AbstractGatewayTest_MockAbstractGateway ();
19
19
$ this ->gateway ->initialize ();
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class CreditCardTest extends TestCase
10
10
/** @var CreditCard */
11
11
private $ card ;
12
12
13
- public function setUp ()
13
+ public function setUp () : void
14
14
{
15
15
$ this ->card = new CreditCard ;
16
16
$ this ->card ->setNumber ('4111111111111111 ' );
Original file line number Diff line number Diff line change 7
7
8
8
class GatewayFactoryTest extends TestCase
9
9
{
10
- public static function setUpBeforeClass ()
10
+ public static function setUpBeforeClass () : void
11
11
{
12
12
m::mock ('alias:Omnipay \\SpareChange \\TestGateway ' );
13
13
}
14
14
15
- public function setUp ()
15
+ public function setUp () : void
16
16
{
17
17
$ this ->factory = new GatewayFactory ;
18
18
}
Original file line number Diff line number Diff line change 6
6
7
7
class ItemBagTest extends TestCase
8
8
{
9
- public function setUp ()
9
+ public function setUp () : void
10
10
{
11
11
$ this ->bag = new ItemBag ;
12
12
}
Original file line number Diff line number Diff line change 6
6
7
7
class ItemTest extends TestCase
8
8
{
9
- public function setUp ()
9
+ public function setUp () : void
10
10
{
11
11
$ this ->item = new Item ;
12
12
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class AbstractRequestTest extends TestCase
14
14
/** @var AbstractRequest */
15
15
protected $ request ;
16
16
17
- public function setUp ()
17
+ public function setUp (): void
18
18
{
19
19
$ this ->request = new AbstractRequestTest_MockAbstractRequest ($ this ->getHttpClient (), $ this ->getHttpRequest ());
20
20
$ this ->request ->initialize ();
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class AbstractResponseTest extends TestCase
10
10
/** @var AbstractResponse */
11
11
protected $ response ;
12
12
13
- public function setUp ()
13
+ public function setUp (): void
14
14
{
15
15
$ this ->response = m::mock ('\Omnipay\Common\Message\AbstractResponse ' )->makePartial ();
16
16
}
You can’t perform that action at this time.
0 commit comments