From 7c4969f4762d5366a39d15a4e82f32a585c637b2 Mon Sep 17 00:00:00 2001 From: Alexandre D'Eschambeault Date: Tue, 26 Mar 2024 10:57:47 -0400 Subject: [PATCH] test: abstract classes with the Test suffix are deprecated --- tests/{UnitTest.php => TestCase.php} | 4 ++-- tests/Unit/FilesystemRepositoryTest.php | 4 ++-- tests/Unit/ImageServiceTest.php | 4 ++-- tests/Unit/ImageTest.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) rename tests/{UnitTest.php => TestCase.php} (64%) diff --git a/tests/UnitTest.php b/tests/TestCase.php similarity index 64% rename from tests/UnitTest.php rename to tests/TestCase.php index d7dc178..dafdaf4 100644 --- a/tests/UnitTest.php +++ b/tests/TestCase.php @@ -3,9 +3,9 @@ namespace Exolnet\Image\Tests; use Mockery; -use PHPUnit\Framework\TestCase; +use PHPUnit\Framework\TestCase as BaseTestCase; -abstract class UnitTest extends TestCase +abstract class TestCase extends BaseTestCase { /** * @return void diff --git a/tests/Unit/FilesystemRepositoryTest.php b/tests/Unit/FilesystemRepositoryTest.php index 7741bbb..d10b89d 100644 --- a/tests/Unit/FilesystemRepositoryTest.php +++ b/tests/Unit/FilesystemRepositoryTest.php @@ -4,12 +4,12 @@ use Exolnet\Image\Image; use Exolnet\Image\Repository\FilesystemRepository; -use Exolnet\Image\Tests\UnitTest; +use Exolnet\Image\Tests\TestCase; use Illuminate\Filesystem\Filesystem; use Mockery as m; use Symfony\Component\HttpFoundation\File\File; -class FilesystemRepositoryTest extends UnitTest +class FilesystemRepositoryTest extends TestCase { protected $filesystemRepository; diff --git a/tests/Unit/ImageServiceTest.php b/tests/Unit/ImageServiceTest.php index 195b5db..8d0ae47 100644 --- a/tests/Unit/ImageServiceTest.php +++ b/tests/Unit/ImageServiceTest.php @@ -5,11 +5,11 @@ use Exolnet\Image\Image; use Exolnet\Image\ImageService; use Exolnet\Image\Repository\FilesystemRepository; -use Exolnet\Image\Tests\UnitTest; +use Exolnet\Image\Tests\TestCase; use Mockery as m; use Symfony\Component\HttpFoundation\File\File; -class ImageServiceTest extends UnitTest +class ImageServiceTest extends TestCase { /** @var \Exolnet\Image\ImageService */ protected $service; diff --git a/tests/Unit/ImageTest.php b/tests/Unit/ImageTest.php index c1fb65a..5f0e879 100644 --- a/tests/Unit/ImageTest.php +++ b/tests/Unit/ImageTest.php @@ -3,9 +3,9 @@ namespace Exolnet\Image\Tests\Unit; use Exolnet\Image\Image; -use Exolnet\Image\Tests\UnitTest; +use Exolnet\Image\Tests\TestCase; -class ImageTest extends UnitTest +class ImageTest extends TestCase { /** * @var \Exolnet\Image\Image