Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Aug 3, 2024
1 parent 6604000 commit 460b205
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Intervention\Image\Traits\CanBuildFilePointer;

trait CanDetectInterlacedPng
trait CanInspectPngFormat
{
use CanBuildFilePointer;

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Drivers/Gd/Encoders/PngEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
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
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Drivers/Imagick/Encoders/PngEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
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
{
Expand Down

0 comments on commit 460b205

Please sign in to comment.