From 460b20568781c1fc83aa23f1fea532d1730b134a Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 3 Aug 2024 11:03:32 +0200 Subject: [PATCH] Rename class --- .../{CanDetectInterlacedPng.php => CanInspectPngFormat.php} | 2 +- tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php | 4 ++-- tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename tests/Traits/{CanDetectInterlacedPng.php => CanInspectPngFormat.php} (94%) diff --git a/tests/Traits/CanDetectInterlacedPng.php b/tests/Traits/CanInspectPngFormat.php similarity index 94% rename from tests/Traits/CanDetectInterlacedPng.php rename to tests/Traits/CanInspectPngFormat.php index 19fffe46..510466f7 100644 --- a/tests/Traits/CanDetectInterlacedPng.php +++ b/tests/Traits/CanInspectPngFormat.php @@ -6,7 +6,7 @@ namespace Intervention\Image\Tests\Traits; use Intervention\Image\Traits\CanBuildFilePointer; -trait CanDetectInterlacedPng +trait CanInspectPngFormat { use CanBuildFilePointer; diff --git a/tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php b/tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php index 9c96591a..69cc7d12 100644 --- a/tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php +++ b/tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php @@ -8,14 +8,14 @@ use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use Intervention\Image\Encoders\PngEncoder; use Intervention\Image\Tests\GdTestCase; -use Intervention\Image\Tests\Traits\CanDetectInterlacedPng; +use Intervention\Image\Tests\Traits\CanInspectPngFormat; #[RequiresPhpExtension('gd')] #[CoversClass(\Intervention\Image\Encoders\PngEncoder::class)] #[CoversClass(\Intervention\Image\Drivers\Gd\Encoders\PngEncoder::class)] final class PngEncoderTest extends GdTestCase { - use CanDetectInterlacedPng; + use CanInspectPngFormat; public function testEncode(): void { diff --git a/tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php b/tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php index 503320b7..268ac830 100644 --- a/tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php +++ b/tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php @@ -8,14 +8,14 @@ use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use Intervention\Image\Encoders\PngEncoder; use Intervention\Image\Tests\ImagickTestCase; -use Intervention\Image\Tests\Traits\CanDetectInterlacedPng; +use Intervention\Image\Tests\Traits\CanInspectPngFormat; #[RequiresPhpExtension('imagick')] #[CoversClass(\Intervention\Image\Encoders\PngEncoder::class)] #[CoversClass(\Intervention\Image\Drivers\Imagick\Encoders\PngEncoder::class)] final class PngEncoderTest extends ImagickTestCase { - use CanDetectInterlacedPng; + use CanInspectPngFormat; public function testEncode(): void {