Skip to content

Commit 185290a

Browse files
committed
Bump phpunit to 6.x
1 parent 60c8c81 commit 185290a

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"require": {
2929
"php-http/mock-client": "^1",
3030
"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"
3333
},
3434
"require-dev": {
3535
"omnipay/common": "^3",
@@ -39,5 +39,7 @@
3939
"branch-alias": {
4040
"dev-master": "3.0.x-dev"
4141
}
42-
}
42+
},
43+
"minimum-stability": "rc",
44+
"prefer-stable": true
4345
}

src/GatewayTestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22

33
namespace Omnipay\Tests;
44

5+
use Omnipay\Common\AbstractGateway;
6+
57
/**
68
* Base Gateway Test class
79
*
810
* Ensures all gateways conform to consistent standards
911
*/
1012
abstract class GatewayTestCase extends TestCase
1113
{
14+
/** @var AbstractGateway */
15+
protected $gateway;
16+
1217
public function testGetNameNotEmpty()
1318
{
1419
$name = $this->gateway->getName();

src/TestCase.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Mockery as m;
66
use Omnipay\Common\Http\Client;
7-
use PHPUnit\Framework\TestCase as PHPUnit_Framework_TestCase;
7+
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
88
use Psr\Http\Message\ResponseInterface;
99
use ReflectionObject;
1010
use Http\Mock\Client as MockClient;
@@ -15,7 +15,7 @@
1515
*
1616
* Guzzle mock methods area based on those in GuzzleTestCase
1717
*/
18-
abstract class TestCase extends PHPUnit_Framework_TestCase
18+
abstract class TestCase extends PHPUnitTestCase
1919
{
2020
/** @var \Omnipay\Common\Message\RequestInterface */
2121
private $mockRequest;
@@ -163,4 +163,8 @@ public function getHttpRequest()
163163

164164
return $this->httpRequest;
165165
}
166+
167+
public function tearDown() {
168+
\Mockery::close();
169+
}
166170
}

0 commit comments

Comments
 (0)