Skip to content

Commit

Permalink
test: abstract classes with the Test suffix are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
xel1045 committed Mar 26, 2024
1 parent 3de1226 commit 7c4969f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/UnitTest.php → tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/FilesystemRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/ImageServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c4969f

Please sign in to comment.