1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 17:19:50 +02:00

Rename files to match namespaces & class names

This commit is contained in:
Oliver Vogel
2024-01-30 16:48:10 +01:00
parent 554d97b82a
commit 9015739860
11 changed files with 34 additions and 34 deletions

View File

@@ -4,28 +4,26 @@ declare(strict_types=1);
namespace Intervention\Image\Tests\Drivers\Gd\Analyzers;
use Intervention\Image\Analyzers\PixelColorsAnalyzer;
use Intervention\Image\Collection;
use Intervention\Image\Analyzers\PixelColorAnalyzer;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Tests\TestCase;
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
/**
* @requires extension gd
* @covers \Intervention\Image\Analyzers\PixelColorsAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorsAnalyzer
* @covers \Intervention\Image\Analyzers\PixelColorAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorAnalyzer
*/
class PixelColorsAnalyzerTest extends TestCase
class PixelColorAnalyzerTest extends TestCase
{
use CanCreateGdTestImage;
public function testAnalyze(): void
{
$image = $this->readTestImage('tile.png');
$analyzer = new PixelColorsAnalyzer(0, 0);
$analyzer = new PixelColorAnalyzer(0, 0);
$result = $analyzer->analyze($image);
$this->assertInstanceOf(Collection::class, $result);
$this->assertInstanceOf(ColorInterface::class, $result->first());
$this->assertEquals('b4e000', $result->first()->toHex());
$this->assertInstanceOf(ColorInterface::class, $result);
$this->assertEquals('b4e000', $result->toHex());
}
}

View File

@@ -4,26 +4,28 @@ declare(strict_types=1);
namespace Intervention\Image\Tests\Drivers\Gd\Analyzers;
use Intervention\Image\Analyzers\PixelColorAnalyzer;
use Intervention\Image\Analyzers\PixelColorsAnalyzer;
use Intervention\Image\Collection;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Tests\TestCase;
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
/**
* @requires extension gd
* @covers \Intervention\Image\Analyzers\PixelColorAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorAnalyzer
* @covers \Intervention\Image\Analyzers\PixelColorsAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorsAnalyzer
*/
class PixelColorAnalyzerTest extends TestCase
class PixelColorsAnalyzerTest extends TestCase
{
use CanCreateGdTestImage;
public function testAnalyze(): void
{
$image = $this->readTestImage('tile.png');
$analyzer = new PixelColorAnalyzer(0, 0);
$analyzer = new PixelColorsAnalyzer(0, 0);
$result = $analyzer->analyze($image);
$this->assertInstanceOf(ColorInterface::class, $result);
$this->assertEquals('b4e000', $result->toHex());
$this->assertInstanceOf(Collection::class, $result);
$this->assertInstanceOf(ColorInterface::class, $result->first());
$this->assertEquals('b4e000', $result->first()->toHex());
}
}

View File

@@ -17,7 +17,7 @@ use SplFileInfo;
* @requires extension gd
* @covers \Intervention\Image\Drivers\Gd\InputHandler
*/
class GdInputHandlerTest extends TestCase
class InputHandlerTest extends TestCase
{
public function testHandleEmptyString(): void
{

View File

@@ -4,28 +4,26 @@ declare(strict_types=1);
namespace Intervention\Image\Tests\Drivers\Imagick\Analyzers;
use Intervention\Image\Analyzers\PixelColorsAnalyzer;
use Intervention\Image\Collection;
use Intervention\Image\Analyzers\PixelColorAnalyzer;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Tests\TestCase;
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
/**
* @requires extension imagick
* @covers \Intervention\Image\Analyzers\PixelColorsAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorsAnalyzer
* @covers \Intervention\Image\Analyzers\PixelColorAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorAnalyzer
*/
class PixelColorsAnalyzerTest extends TestCase
class PixelColorAnalyzerTest extends TestCase
{
use CanCreateImagickTestImage;
public function testAnalyze(): void
{
$image = $this->readTestImage('tile.png');
$analyzer = new PixelColorsAnalyzer(0, 0);
$analyzer = new PixelColorAnalyzer(0, 0);
$result = $analyzer->analyze($image);
$this->assertInstanceOf(Collection::class, $result);
$this->assertInstanceOf(ColorInterface::class, $result->first());
$this->assertEquals('b4e000', $result->first()->toHex());
$this->assertInstanceOf(ColorInterface::class, $result);
$this->assertEquals('b4e000', $result->toHex());
}
}

View File

@@ -4,26 +4,28 @@ declare(strict_types=1);
namespace Intervention\Image\Tests\Drivers\Imagick\Analyzers;
use Intervention\Image\Analyzers\PixelColorAnalyzer;
use Intervention\Image\Analyzers\PixelColorsAnalyzer;
use Intervention\Image\Collection;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Tests\TestCase;
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
/**
* @requires extension imagick
* @covers \Intervention\Image\Analyzers\PixelColorAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorAnalyzer
* @covers \Intervention\Image\Analyzers\PixelColorsAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\PixelColorsAnalyzer
*/
class PixelColorAnalyzerTest extends TestCase
class PixelColorsAnalyzerTest extends TestCase
{
use CanCreateImagickTestImage;
public function testAnalyze(): void
{
$image = $this->readTestImage('tile.png');
$analyzer = new PixelColorAnalyzer(0, 0);
$analyzer = new PixelColorsAnalyzer(0, 0);
$result = $analyzer->analyze($image);
$this->assertInstanceOf(ColorInterface::class, $result);
$this->assertEquals('b4e000', $result->toHex());
$this->assertInstanceOf(Collection::class, $result);
$this->assertInstanceOf(ColorInterface::class, $result->first());
$this->assertEquals('b4e000', $result->first()->toHex());
}
}

View File

@@ -14,7 +14,7 @@ use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
* @covers \Intervention\Image\Analyzers\ProfileAnalyzer
* @covers \Intervention\Image\Drivers\Imagick\Analyzers\ProfileAnalyzer
*/
class ProfleAnalyzerTest extends TestCase
class ProfileAnalyzerTest extends TestCase
{
use CanCreateImagickTestImage;