Skip to content

Commit

Permalink
Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 21, 2024
1 parent da4d538 commit a42bd9f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Unit/Colors/Cmyk/ChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -44,30 +44,30 @@ public function testConstructorFail(): void

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());
}

Expand Down

0 comments on commit a42bd9f

Please sign in to comment.