From ccddb6db9d982664384f44e43c42d9459f11989c Mon Sep 17 00:00:00 2001 From: Alexandre D'Eschambeault Date: Tue, 26 Mar 2024 11:13:39 -0400 Subject: [PATCH] test: abstract classes with the Test suffix are deprecated --- tests/Unit/Console/DbUpgradeCommandTest.php | 2 +- tests/Unit/{UnitTest.php => TestCase.php} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/Unit/{UnitTest.php => TestCase.php} (60%) diff --git a/tests/Unit/Console/DbUpgradeCommandTest.php b/tests/Unit/Console/DbUpgradeCommandTest.php index 6a93094..6553c66 100644 --- a/tests/Unit/Console/DbUpgradeCommandTest.php +++ b/tests/Unit/Console/DbUpgradeCommandTest.php @@ -7,7 +7,7 @@ use Mockery as m; use Symfony\Component\Process\ExecutableFinder; -class DbUpgradeCommandTest extends UnitTest +class DbUpgradeCommandTest extends TestCase { /** * @var \Illuminate\Filesystem\Filesystem|\Mockery\LegacyMockInterface|\Mockery\MockInterface diff --git a/tests/Unit/UnitTest.php b/tests/Unit/TestCase.php similarity index 60% rename from tests/Unit/UnitTest.php rename to tests/Unit/TestCase.php index fc437fe..99bf9c6 100644 --- a/tests/Unit/UnitTest.php +++ b/tests/Unit/TestCase.php @@ -3,9 +3,9 @@ namespace Exolnet\DbUpgrade\Tests\Unit; use Mockery; -use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase as BaseTestCase; -abstract class UnitTest extends TestCase +abstract class TestCase extends BaseTestCase { public function tearDown(): void {