From 512e308e8038dcb2af61eff79f09c379c3d52378 Mon Sep 17 00:00:00 2001 From: Alexandre D'Eschambeault Date: Tue, 26 Mar 2024 11:04:21 -0400 Subject: [PATCH] test: abstract classes with the Test suffix are deprecated --- tests/Unit/Transport/TransportFactoryTest.php | 4 ++-- tests/Unit/{UnitTest.php => UnitTestCase.php} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/Unit/{UnitTest.php => UnitTestCase.php} (79%) diff --git a/tests/Unit/Transport/TransportFactoryTest.php b/tests/Unit/Transport/TransportFactoryTest.php index 785d2a0..10e9f67 100644 --- a/tests/Unit/Transport/TransportFactoryTest.php +++ b/tests/Unit/Transport/TransportFactoryTest.php @@ -2,18 +2,18 @@ namespace Exolnet\Graylog\Tests\Unit\Transport; +use Exolnet\Graylog\Tests\Unit\UnitTestCase; use Exolnet\Graylog\Transport\TransportFactory; use Gelf\Transport\HttpTransport; use Gelf\Transport\KeepAliveRetryTransportWrapper; use Gelf\Transport\TcpTransport; use Gelf\Transport\UdpTransport; use InvalidArgumentException; -use PHPUnit\Framework\TestCase; /** * @covers \Exolnet\Graylog\Transport\TransportFactory */ -class TransportFactoryTest extends TestCase +class TransportFactoryTest extends UnitTestCase { /** * @var \Exolnet\Graylog\Transport\TransportFactory diff --git a/tests/Unit/UnitTest.php b/tests/Unit/UnitTestCase.php similarity index 79% rename from tests/Unit/UnitTest.php rename to tests/Unit/UnitTestCase.php index 4666c7f..89da5e3 100644 --- a/tests/Unit/UnitTest.php +++ b/tests/Unit/UnitTestCase.php @@ -5,7 +5,7 @@ use Mockery; use PHPUnit\Framework\TestCase; -abstract class UnitTest extends TestCase +abstract class UnitTestCase extends TestCase { public function tearDown(): void {