1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-10 07:53:58 +02:00

Remove whitespace

This commit is contained in:
Oliver Vogel
2024-12-08 08:59:03 +01:00
parent da4d538c70
commit a42bd9fe53

View File

@@ -20,13 +20,13 @@ final class ChannelTest extends BaseTestCase
{
public function testConstructor(): void
{
$channel = new Cyan(0);
$channel = new Cyan(0);
$this->assertInstanceOf(Cyan::class, $channel);
$channel = new Cyan(value: 0);
$channel = new Cyan(value: 0);
$this->assertInstanceOf(Cyan::class, $channel);
$channel = new Cyan(normalized: 0);
$channel = new Cyan(normalized: 0);
$this->assertInstanceOf(Cyan::class, $channel);
$this->expectException(ColorException::class);
@@ -44,30 +44,30 @@ final class ChannelTest extends BaseTestCase
public function testToInt(): void
{
$channel = new Cyan(10);
$channel = new Cyan(10);
$this->assertEquals(10, $channel->toInt());
}
public function testToString(): void
{
$channel = new Cyan(10);
$channel = new Cyan(10);
$this->assertEquals("10", $channel->toString());
$this->assertEquals("10", (string) $channel);
}
public function testValue(): void
{
$channel = new Cyan(10);
$channel = new Cyan(10);
$this->assertEquals(10, $channel->value());
}
public function testNormalize(): void
{
$channel = new Cyan(100);
$channel = new Cyan(100);
$this->assertEquals(1, $channel->normalize());
$channel = new Cyan(0);
$channel = new Cyan(0);
$this->assertEquals(0, $channel->normalize());
$channel = new Cyan(20);
$channel = new Cyan(20);
$this->assertEquals(.2, $channel->normalize());
}