File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 28
28
"require" : {
29
29
"php-http/mock-client" : " ^1" ,
30
30
"php-http/guzzle6-adapter" : " ^1.1.1" ,
31
- "mockery/mockery" : " ^0.9 " ,
32
- "phpunit/phpunit" : " ^5.7.25 "
31
+ "mockery/mockery" : " ^1 " ,
32
+ "phpunit/phpunit" : " ^6 "
33
33
},
34
34
"require-dev" : {
35
35
"omnipay/common" : " ^3" ,
39
39
"branch-alias" : {
40
40
"dev-master" : " 3.0.x-dev"
41
41
}
42
- }
42
+ },
43
+ "minimum-stability" : " rc" ,
44
+ "prefer-stable" : true
43
45
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Omnipay \Tests ;
4
4
5
+ use Omnipay \Common \AbstractGateway ;
6
+
5
7
/**
6
8
* Base Gateway Test class
7
9
*
8
10
* Ensures all gateways conform to consistent standards
9
11
*/
10
12
abstract class GatewayTestCase extends TestCase
11
13
{
14
+ /** @var AbstractGateway */
15
+ protected $ gateway ;
16
+
12
17
public function testGetNameNotEmpty ()
13
18
{
14
19
$ name = $ this ->gateway ->getName ();
Original file line number Diff line number Diff line change 4
4
5
5
use Mockery as m ;
6
6
use Omnipay \Common \Http \Client ;
7
- use PHPUnit \Framework \TestCase as PHPUnit_Framework_TestCase ;
7
+ use PHPUnit \Framework \TestCase as PHPUnitTestCase ;
8
8
use Psr \Http \Message \ResponseInterface ;
9
9
use ReflectionObject ;
10
10
use Http \Mock \Client as MockClient ;
15
15
*
16
16
* Guzzle mock methods area based on those in GuzzleTestCase
17
17
*/
18
- abstract class TestCase extends PHPUnit_Framework_TestCase
18
+ abstract class TestCase extends PHPUnitTestCase
19
19
{
20
20
/** @var \Omnipay\Common\Message\RequestInterface */
21
21
private $ mockRequest ;
@@ -163,4 +163,8 @@ public function getHttpRequest()
163
163
164
164
return $ this ->httpRequest ;
165
165
}
166
+
167
+ public function tearDown () {
168
+ \Mockery::close ();
169
+ }
166
170
}
You can’t perform that action at this time.
0 commit comments