Skip to content

Commit 5e09f15

Browse files
committed
Close mockery after test is done.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
1 parent c00cdd2 commit 5e09f15

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

app/extensions/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

tests/TestCase.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
<?php
22

3+
use Mockery as m;
4+
35
class TestCase extends Illuminate\Foundation\Testing\TestCase {
46

7+
8+
/**
9+
* Close mockery.
10+
*
11+
* @return void
12+
*/
13+
public function tearDown()
14+
{
15+
m::close();
16+
}
17+
18+
519
/**
620
* Creates the application.
721
*
@@ -13,7 +27,7 @@ public function createApplication()
1327

1428
$testEnvironment = 'testing';
1529

16-
return require __DIR__.'/../../start.php';
30+
return require __DIR__.'/../start.php';
1731
}
1832

1933
}

0 commit comments

Comments
 (0)