Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Remove and update a few tearDown methods. #48381

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions tests/Cache/CacheTaggedCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@
use DateInterval;
use DateTime;
use Illuminate\Cache\ArrayStore;
use Mockery as m;
use PHPUnit\Framework\TestCase;

class CacheTaggedCacheTest extends TestCase
{
protected function tearDown(): void
{
m::close();
}

public function testCacheCanBeSavedWithMultipleTags()
{
$store = new ArrayStore;
Expand Down
6 changes: 0 additions & 6 deletions tests/Console/CommandTrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Illuminate\Console\Command;
use Illuminate\Console\Signals;
use Illuminate\Tests\Console\Fixtures\FakeSignalsRegistry;
use Mockery as m;
use PHPUnit\Framework\TestCase;

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

protected function tearDown(): void
{
m::close();
}

public function testTrapWhenAvailable()
{
$command = $this->createCommand();
Expand Down
6 changes: 0 additions & 6 deletions tests/Console/OutputStyleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
namespace Illuminate\Tests\Console;

use Illuminate\Console\OutputStyle;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\BufferedOutput;

class OutputStyleTest extends TestCase
{
protected function tearDown(): void
{
m::close();
}

public function testDetectsNewLine()
{
$bufferedOutput = new BufferedOutput();
Expand Down
3 changes: 1 addition & 2 deletions tests/Console/SignalsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Console\Signals;
use Illuminate\Tests\Console\Fixtures\FakeSignalsRegistry;
use Mockery as m;
use PHPUnit\Framework\TestCase;

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

m::close();
parent::tearDown();
}

public function testRegister()
Expand Down
6 changes: 0 additions & 6 deletions tests/Process/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@
use Illuminate\Process\Exceptions\ProcessFailedException;
use Illuminate\Process\Exceptions\ProcessTimedOutException;
use Illuminate\Process\Factory;
use Mockery as m;
use OutOfBoundsException;
use PHPUnit\Framework\TestCase;
use RuntimeException;

class ProcessTest extends TestCase
{
protected function tearDown(): void
{
m::close();
}

public function testSuccessfulProcess()
{
$factory = new Factory;
Expand Down