Skip to content

Commit c78ab2b

Browse files
committed
Use mockery integration
1 parent 732c99f commit c78ab2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/TestCase.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Omnipay\Tests;
44

55
use Mockery as m;
6+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
67
use Omnipay\Common\Http\Client;
78
use Omnipay\Common\Http\ClientInterface;
89
use Omnipay\Common\Message\RequestInterface;
@@ -19,6 +20,8 @@
1920
*/
2021
abstract class TestCase extends PHPUnitTestCase
2122
{
23+
use MockeryPHPUnitIntegration;
24+
2225
/** @var RequestInterface */
2326
private $mockRequest;
2427

@@ -170,8 +173,4 @@ public function getHttpRequest()
170173

171174
return $this->httpRequest;
172175
}
173-
174-
public function tearDown() {
175-
\Mockery::close();
176-
}
177176
}

0 commit comments

Comments
 (0)