Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 8cdc694

Browse files
committed
Use Mockery trait to allow full intergration with Mockery
1 parent 338826d commit 8cdc694

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/TestCase.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Countable;
77
use Iterator;
88
use Mockery;
9+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
910
use Mockery\MockInterface;
1011
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
1112

@@ -16,14 +17,7 @@
1617
*/
1718
abstract class TestCase extends PHPUnitTestCase
1819
{
19-
public function tearDown()
20-
{
21-
if (class_exists('Mockery')) {
22-
Mockery::close();
23-
}
24-
25-
parent::tearDown();
26-
}
20+
use MockeryPHPUnitIntegration;
2721

2822
/**
2923
* Helper to allow mocking of iterator classes.

0 commit comments

Comments
 (0)