mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 16:50:07 +02:00
Merge branch 'develop' into feature/standard-rules
This commit is contained in:
@@ -29,10 +29,10 @@ class ChannelTest extends TestCase
|
|||||||
$this->assertInstanceOf(Channel::class, $channel);
|
$this->assertInstanceOf(Channel::class, $channel);
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Channel();
|
new Channel();
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Channel(normalized: 2);
|
new Channel(normalized: 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructorFail(): void
|
public function testConstructorFail(): void
|
||||||
|
@@ -29,10 +29,10 @@ class ChannelTest extends TestCase
|
|||||||
$this->assertInstanceOf(Hue::class, $channel);
|
$this->assertInstanceOf(Hue::class, $channel);
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Hue();
|
new Hue();
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Hue(normalized: 2);
|
new Hue(normalized: 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructorFail(): void
|
public function testConstructorFail(): void
|
||||||
|
@@ -30,10 +30,10 @@ class ChannelTest extends TestCase
|
|||||||
$this->assertInstanceOf(Hue::class, $channel);
|
$this->assertInstanceOf(Hue::class, $channel);
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Hue();
|
new Hue();
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Hue(normalized: 2);
|
new Hue(normalized: 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructorFail(): void
|
public function testConstructorFail(): void
|
||||||
|
@@ -28,10 +28,10 @@ class ChannelTest extends TestCase
|
|||||||
$this->assertInstanceOf(Channel::class, $channel);
|
$this->assertInstanceOf(Channel::class, $channel);
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Channel();
|
new Channel();
|
||||||
|
|
||||||
$this->expectException(ColorException::class);
|
$this->expectException(ColorException::class);
|
||||||
$channel = new Channel(normalized: 2);
|
new Channel(normalized: 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructorFail(): void
|
public function testConstructorFail(): void
|
||||||
|
@@ -22,6 +22,6 @@ class ColorProcessorTest extends TestCase
|
|||||||
public function testNativeToColor(): void
|
public function testNativeToColor(): void
|
||||||
{
|
{
|
||||||
$processor = new ColorProcessor(new Colorspace());
|
$processor = new ColorProcessor(new Colorspace());
|
||||||
$result = $processor->nativeToColor(new ImagickPixel('rgb(255, 55, 0)'));
|
$processor->nativeToColor(new ImagickPixel('rgb(255, 55, 0)'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user