Skip to content

Commit

Permalink
Use mockery integration
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed May 15, 2018
1 parent 732c99f commit c78ab2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Omnipay\Tests;

use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Omnipay\Common\Http\Client;
use Omnipay\Common\Http\ClientInterface;
use Omnipay\Common\Message\RequestInterface;
Expand All @@ -19,6 +20,8 @@
*/
abstract class TestCase extends PHPUnitTestCase
{
use MockeryPHPUnitIntegration;

/** @var RequestInterface */
private $mockRequest;

Expand Down Expand Up @@ -170,8 +173,4 @@ public function getHttpRequest()

return $this->httpRequest;
}

public function tearDown() {
\Mockery::close();
}
}

0 comments on commit c78ab2b

Please sign in to comment.