Skip to content

Commit 06c96e9

Browse files
committed
test(tests): Add MockeryPHPUnitIntegration trait
- Add MockeryPHPUnitIntegration trait to TestCase.php
1 parent 0a40761 commit 06c96e9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/TestCase.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use Guanguans\LaravelExceptionNotify\Pipes\ReplaceStrPipe;
3737
use Guanguans\LaravelExceptionNotify\Pipes\ToHtmlPipe;
3838
use Guanguans\LaravelExceptionNotify\Pipes\ToMarkdownPipe;
39+
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
3940
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
4041

4142
/**
@@ -45,16 +46,13 @@
4546
*/
4647
class TestCase extends \Orchestra\Testbench\TestCase
4748
{
49+
use MockeryPHPUnitIntegration;
4850
use VarDumperTestTrait;
4951

5052
protected function tearDown(): void
5153
{
52-
parent::tearDown();
53-
if ($container = \Mockery::getContainer()) {
54-
$this->addToAssertionCount($container->mockery_getExpectationCount());
55-
}
56-
5754
\Mockery::close();
55+
parent::tearDown();
5856
}
5957

6058
protected function getPackageProviders($app): array

0 commit comments

Comments
 (0)