Skip to content

Commit 6dab25f

Browse files
committed
New mockery phpunit integration trait used.
1 parent 84ad414 commit 6dab25f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/HelperFunctions/TestCase.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44

55
use Illuminated\Testing\TestingTools;
66
use Mockery;
7+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
78

89
abstract class TestCase extends \PHPUnit\Framework\TestCase
910
{
1011
use TestingTools;
12+
use MockeryPHPUnitIntegration;
1113

1214
public static $functions;
1315

@@ -20,9 +22,4 @@ protected function shouldReceiveExecCallOnceWith($with)
2022
{
2123
self::$functions->shouldReceive('exec')->with($with)->once();
2224
}
23-
24-
protected function tearDown()
25-
{
26-
Mockery::close();
27-
}
2825
}

0 commit comments

Comments
 (0)