Skip to content

Commit 5f8d1a2

Browse files
authored
Remove and update a few tearDown methods. (#48381)
1 parent a02a39b commit 5f8d1a2

File tree

5 files changed

+1
-26
lines changed

5 files changed

+1
-26
lines changed

tests/Cache/CacheTaggedCacheTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@
55
use DateInterval;
66
use DateTime;
77
use Illuminate\Cache\ArrayStore;
8-
use Mockery as m;
98
use PHPUnit\Framework\TestCase;
109

1110
class CacheTaggedCacheTest extends TestCase
1211
{
13-
protected function tearDown(): void
14-
{
15-
m::close();
16-
}
17-
1812
public function testCacheCanBeSavedWithMultipleTags()
1913
{
2014
$store = new ArrayStore;

tests/Console/CommandTrapTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Console\Signals;
77
use Illuminate\Tests\Console\Fixtures\FakeSignalsRegistry;
8-
use Mockery as m;
98
use PHPUnit\Framework\TestCase;
109

1110
class CommandTrapTest extends TestCase
@@ -24,11 +23,6 @@ protected function setUp(): void
2423
$this->state = null;
2524
}
2625

27-
protected function tearDown(): void
28-
{
29-
m::close();
30-
}
31-
3226
public function testTrapWhenAvailable()
3327
{
3428
$command = $this->createCommand();

tests/Console/OutputStyleTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@
33
namespace Illuminate\Tests\Console;
44

55
use Illuminate\Console\OutputStyle;
6-
use Mockery as m;
76
use PHPUnit\Framework\TestCase;
87
use Symfony\Component\Console\Input\ArrayInput;
98
use Symfony\Component\Console\Output\BufferedOutput;
109

1110
class OutputStyleTest extends TestCase
1211
{
13-
protected function tearDown(): void
14-
{
15-
m::close();
16-
}
17-
1812
public function testDetectsNewLine()
1913
{
2014
$bufferedOutput = new BufferedOutput();

tests/Console/SignalsTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Console\Signals;
66
use Illuminate\Tests\Console\Fixtures\FakeSignalsRegistry;
7-
use Mockery as m;
87
use PHPUnit\Framework\TestCase;
98

109
class SignalsTest extends TestCase
@@ -25,7 +24,7 @@ protected function tearDown(): void
2524
{
2625
$this->state = null;
2726

28-
m::close();
27+
parent::tearDown();
2928
}
3029

3130
public function testRegister()

tests/Process/ProcessTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@
66
use Illuminate\Process\Exceptions\ProcessFailedException;
77
use Illuminate\Process\Exceptions\ProcessTimedOutException;
88
use Illuminate\Process\Factory;
9-
use Mockery as m;
109
use OutOfBoundsException;
1110
use PHPUnit\Framework\TestCase;
1211
use RuntimeException;
1312

1413
class ProcessTest extends TestCase
1514
{
16-
protected function tearDown(): void
17-
{
18-
m::close();
19-
}
20-
2115
public function testSuccessfulProcess()
2216
{
2317
$factory = new Factory;

0 commit comments

Comments
 (0)