mirror of
https://github.com/Intervention/image.git
synced 2025-01-17 20:28:21 +01:00
Add @covers annotations to tests
This commit is contained in:
parent
270ec4bc5b
commit
5dcd6e820f
@ -3,7 +3,6 @@
|
||||
namespace Intervention\Image\Tests;
|
||||
|
||||
use Intervention\Image\Collection;
|
||||
use Intervention\Image\Drivers\Abstract\AbstractFrame;
|
||||
use Intervention\Image\Drivers\Abstract\AbstractImage;
|
||||
use Intervention\Image\EncodedImage;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
@ -14,6 +13,9 @@ use Intervention\Image\Interfaces\ImageInterface;
|
||||
use Intervention\Image\Interfaces\ModifierInterface;
|
||||
use Mockery;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Abstract\AbstractImage
|
||||
*/
|
||||
class AbstractImageTest extends TestCase
|
||||
{
|
||||
protected function abstractImageMock(): AbstractImage
|
||||
|
@ -4,6 +4,9 @@ namespace Intervention\Image\Tests;
|
||||
|
||||
use Intervention\Image\Collection;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Collection
|
||||
*/
|
||||
class CollectionTest extends TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
|
@ -2,10 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Abstract;
|
||||
|
||||
use Mockery;
|
||||
use Intervention\Image\Drivers\Abstract\AbstractColor;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Mockery;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Abstract\AbstractColor
|
||||
*/
|
||||
class AbstractColorTest extends TestCase
|
||||
{
|
||||
public function testToHex(): void
|
||||
|
@ -5,6 +5,9 @@ namespace Intervention\Image\Tests\Drivers\Gd;
|
||||
use Intervention\Image\Drivers\Gd\Color;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Color
|
||||
*/
|
||||
class ColorTest extends TestCase
|
||||
{
|
||||
protected function getTestColor($r = 0, $g = 0, $b = 0, $a = 0): Color
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Gd\Color;
|
||||
use Intervention\Image\Drivers\Gd\Decoders\ArrayColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\ArrayColorDecoder
|
||||
*/
|
||||
class ArrayColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecode(): void
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\Base64ImageDecoder
|
||||
*/
|
||||
class Base64ImageDecoderTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Gd\Decoders\BinaryImageDecoder;
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\BinaryImageDecoder
|
||||
*/
|
||||
class BinaryImageDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecodePng(): void
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\DataUriImageDecoder
|
||||
*/
|
||||
class DataUriImageDecoderTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\FilePathImageDecoder
|
||||
*/
|
||||
class FilePathImageDecoderTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,10 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Decoders;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Decoders\HexColorDecoder;
|
||||
use Intervention\Image\Drivers\Gd\Color;
|
||||
use Intervention\Image\Drivers\Gd\Decoders\HexColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\HexColorDecoder
|
||||
*/
|
||||
class HexColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecode(): void
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\ImageObjectDecoder
|
||||
*/
|
||||
class ImageObjectDecoderTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Gd\Color;
|
||||
use Intervention\Image\Drivers\Gd\Decoders\RgbStringColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\RgbStringColorDecoder
|
||||
*/
|
||||
class RgbStringColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecodeRgb(): void
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Gd\Color;
|
||||
use Intervention\Image\Drivers\Gd\Decoders\TransparentColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Decoders\TransparentColorDecoder
|
||||
*/
|
||||
class TransparentColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecode(): void
|
||||
|
@ -10,6 +10,9 @@ use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\MimeSniffer\MimeSniffer;
|
||||
use Intervention\MimeSniffer\Types\ImageGif;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Encoders\GifEncoder
|
||||
*/
|
||||
class GifEncoderTest extends TestCase
|
||||
{
|
||||
protected function getTestImage(): Image
|
||||
|
@ -10,6 +10,9 @@ use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\MimeSniffer\MimeSniffer;
|
||||
use Intervention\MimeSniffer\Types\ImageJpeg;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Encoders\JpegEncoder
|
||||
*/
|
||||
class JpegEncoderTest extends TestCase
|
||||
{
|
||||
protected function getTestImage(): Image
|
||||
|
@ -10,6 +10,9 @@ use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\MimeSniffer\MimeSniffer;
|
||||
use Intervention\MimeSniffer\Types\ImagePng;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Encoders\PngEncoder
|
||||
*/
|
||||
class PngEncoderTest extends TestCase
|
||||
{
|
||||
protected function getTestImage(): Image
|
||||
@ -26,4 +29,4 @@ class PngEncoderTest extends TestCase
|
||||
$result = $encoder->encode($image);
|
||||
$this->assertTrue(MimeSniffer::createFromString($result)->matches(new ImagePng));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Frame
|
||||
*/
|
||||
class FrameTest extends TestCase
|
||||
{
|
||||
protected function getTestFrame(): Frame
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\ImageFactory;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\ImageFactory
|
||||
*/
|
||||
class ImageFactoryTest extends TestCase
|
||||
{
|
||||
public function testNewImage(): void
|
||||
|
@ -9,6 +9,9 @@ use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Image
|
||||
*/
|
||||
class ImageTest extends TestCase
|
||||
{
|
||||
protected Image $image;
|
||||
|
@ -2,15 +2,15 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd;
|
||||
|
||||
use Intervention\Image\Collection;
|
||||
use Intervention\Image\Drivers\Gd\Color;
|
||||
use Intervention\Image\Drivers\Gd\Frame;
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\InputHandler;
|
||||
use Intervention\Image\Exceptions\DecoderException;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\InputHandler
|
||||
*/
|
||||
class InputHandlerTest extends TestCase
|
||||
{
|
||||
public function testHandleEmptyString(): void
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\BlurModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\BlurModifier
|
||||
*/
|
||||
class BlurModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\BrightnessModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\BrightnessModifier
|
||||
*/
|
||||
class BrightnessModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\ContrastModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\ContrastModifier
|
||||
*/
|
||||
class ContrastModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -3,11 +3,14 @@
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use GdImage;
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\DestroyModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\DestroyModifier
|
||||
*/
|
||||
class DestroyModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -8,6 +8,10 @@ use Intervention\Image\Geometry\Point;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\FillModifier
|
||||
*/
|
||||
class FillModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,13 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\FitModifier;
|
||||
use Intervention\Image\Geometry\Point;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\FitModifier
|
||||
*/
|
||||
class FitModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\GreyscaleModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\GreyscaleModifier
|
||||
*/
|
||||
class GreyscaleModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\InvertModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\InvertModifier
|
||||
*/
|
||||
class InvertModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\PixelateModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\PixelateModifier
|
||||
*/
|
||||
class PixelateModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,12 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\PlaceModifier;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\PlaceModifier
|
||||
*/
|
||||
class PlaceModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,12 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\ResizeModifier;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\ResizeModifier
|
||||
*/
|
||||
class ResizeModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -2,11 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Gd\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Gd\Image;
|
||||
use Intervention\Image\Drivers\Gd\Modifiers\SharpenModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateGdTestImage;
|
||||
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Gd\Modifiers\SharpenModifier
|
||||
*/
|
||||
class SharpenModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateGdTestImage;
|
||||
|
@ -6,6 +6,9 @@ use ImagickPixel;
|
||||
use Intervention\Image\Drivers\Imagick\Color;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Color
|
||||
*/
|
||||
class ColorTest extends TestCase
|
||||
{
|
||||
protected function getTestColor(int $r = 0, int $g = 0, int $b = 0, float $a = 1): Color
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Imagick\Color;
|
||||
use Intervention\Image\Drivers\Imagick\Decoders\ArrayColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Decoders\ArrayColorDecoder
|
||||
*/
|
||||
class ArrayColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecode(): void
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Decoders\ImageObjectDecoder
|
||||
*/
|
||||
class ImageObjectDecoderTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Imagick\Color;
|
||||
use Intervention\Image\Drivers\Imagick\Decoders\RgbStringColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Decoders\RgbStringColorDecoder
|
||||
*/
|
||||
class RgbStringColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecodeRgb(): void
|
||||
|
@ -6,6 +6,9 @@ use Intervention\Image\Drivers\Imagick\Color;
|
||||
use Intervention\Image\Drivers\Imagick\Decoders\TransparentColorDecoder;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Decoders\TransparentColorDecoder
|
||||
*/
|
||||
class TransparentColorDecoderTest extends TestCase
|
||||
{
|
||||
public function testDecode(): void
|
||||
|
@ -12,6 +12,9 @@ use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\MimeSniffer\MimeSniffer;
|
||||
use Intervention\MimeSniffer\Types\ImageGif;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Encoders\GifEncoder
|
||||
*/
|
||||
class GifEncoderTest extends TestCase
|
||||
{
|
||||
protected function getTestImage(): Image
|
||||
|
@ -12,6 +12,9 @@ use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\MimeSniffer\MimeSniffer;
|
||||
use Intervention\MimeSniffer\Types\ImageJpeg;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Encoders\JpegEncoder
|
||||
*/
|
||||
class JpegEncoderTest extends TestCase
|
||||
{
|
||||
protected function getTestImage(): Image
|
||||
|
@ -9,6 +9,9 @@ use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Frame
|
||||
*/
|
||||
class FrameTest extends TestCase
|
||||
{
|
||||
protected function getTestFrame(): Frame
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\ImageFactory;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\ImageFactory
|
||||
*/
|
||||
class ImageFactoryTest extends TestCase
|
||||
{
|
||||
public function testNewImage(): void
|
||||
|
@ -10,6 +10,9 @@ use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Image
|
||||
*/
|
||||
class ImageTest extends TestCase
|
||||
{
|
||||
protected Image $image;
|
||||
|
@ -2,15 +2,15 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick;
|
||||
|
||||
use Intervention\Image\Collection;
|
||||
use Intervention\Image\Drivers\Imagick\Color;
|
||||
use Intervention\Image\Drivers\Imagick\Frame;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\InputHandler;
|
||||
use Intervention\Image\Exceptions\DecoderException;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\InputHandler
|
||||
*/
|
||||
class InputHandlerTest extends TestCase
|
||||
{
|
||||
public function testHandleEmptyString(): void
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\BlurModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\BlurModifier
|
||||
*/
|
||||
class BlurModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\BrightnessModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\BrightnessModifier
|
||||
*/
|
||||
class BrightnessModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\ContrastModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\ContrastModifier
|
||||
*/
|
||||
class ContrastModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -3,11 +3,13 @@
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Imagick;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\DestroyModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\DestroyModifier
|
||||
*/
|
||||
class DestroyModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -4,12 +4,14 @@ namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use ImagickPixel;
|
||||
use Intervention\Image\Drivers\Imagick\Color;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\FillModifier;
|
||||
use Intervention\Image\Geometry\Point;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\FillModifier
|
||||
*/
|
||||
class FillModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\FitModifier;
|
||||
use Intervention\Image\Geometry\Point;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\FitModifier
|
||||
*/
|
||||
class FitModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\GreyscaleModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\GreyscaleModifier
|
||||
*/
|
||||
class GreyscaleModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\InvertModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\InvertModifier
|
||||
*/
|
||||
class InvertModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\PixelateModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\PixelateModifier
|
||||
*/
|
||||
class PixelateModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,12 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\PlaceModifier;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\PlaceModifier
|
||||
*/
|
||||
class PlaceModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -2,13 +2,14 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\ResizeModifier;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
class CropResizeModifierTest extends TestCase
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\ResizeModifier
|
||||
*/
|
||||
class ResizeModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
||||
|
@ -2,11 +2,13 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Drivers\Imagick\Modifiers;
|
||||
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Drivers\Imagick\Image;
|
||||
use Intervention\Image\Drivers\Imagick\Modifiers\SharpenModifier;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Tests\Traits\CanCreateImagickTestImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Drivers\Imagick\Modifiers\SharpenModifier
|
||||
*/
|
||||
class SharpenModifierTest extends TestCase
|
||||
{
|
||||
use CanCreateImagickTestImage;
|
||||
|
@ -4,6 +4,9 @@ namespace Intervention\Image\Tests;
|
||||
|
||||
use Intervention\Image\EncodedImage;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\EncodedImage
|
||||
*/
|
||||
class EncodedImageTest extends TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
|
@ -5,6 +5,9 @@ namespace Intervention\Image\Tests\Geometry;
|
||||
use Intervention\Image\Geometry\Point;
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Geometry\Point
|
||||
*/
|
||||
class PointTest extends TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
|
@ -7,6 +7,9 @@ use Intervention\Image\Geometry\Resizer;
|
||||
use Intervention\Image\Geometry\Size;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Geometry\Resizer
|
||||
*/
|
||||
class ResizerTest extends TestCase
|
||||
{
|
||||
public function testMake(): void
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
namespace Intervention\Image\Tests\Geometry;
|
||||
|
||||
use Intervention\Image\Geometry\{Point, Size,};
|
||||
use Intervention\Image\Tests\TestCase;
|
||||
use Intervention\Image\Geometry\{
|
||||
Size,
|
||||
Point,
|
||||
};
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\Geometry\Size
|
||||
*/
|
||||
class SizeTest extends TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
|
@ -5,6 +5,9 @@ namespace Intervention\Image\Tests;
|
||||
use Intervention\Image\ImageManager;
|
||||
use Intervention\Image\Interfaces\ImageInterface;
|
||||
|
||||
/**
|
||||
* @covers \Intervention\Image\ImageManager
|
||||
*/
|
||||
class ImageManagerTest extends TestCase
|
||||
{
|
||||
public function testConstructor()
|
||||
|
Loading…
x
Reference in New Issue
Block a user