@@ -20,13 +20,13 @@ final class ChannelTest extends BaseTestCase
20
20
{
21
21
public function testConstructor (): void
22
22
{
23
- $ channel = new Cyan (0 );
23
+ $ channel = new Cyan (0 );
24
24
$ this ->assertInstanceOf (Cyan::class, $ channel );
25
25
26
- $ channel = new Cyan (value: 0 );
26
+ $ channel = new Cyan (value: 0 );
27
27
$ this ->assertInstanceOf (Cyan::class, $ channel );
28
28
29
- $ channel = new Cyan (normalized: 0 );
29
+ $ channel = new Cyan (normalized: 0 );
30
30
$ this ->assertInstanceOf (Cyan::class, $ channel );
31
31
32
32
$ this ->expectException (ColorException::class);
@@ -44,30 +44,30 @@ public function testConstructorFail(): void
44
44
45
45
public function testToInt (): void
46
46
{
47
- $ channel = new Cyan (10 );
47
+ $ channel = new Cyan (10 );
48
48
$ this ->assertEquals (10 , $ channel ->toInt ());
49
49
}
50
50
51
51
public function testToString (): void
52
52
{
53
- $ channel = new Cyan (10 );
53
+ $ channel = new Cyan (10 );
54
54
$ this ->assertEquals ("10 " , $ channel ->toString ());
55
55
$ this ->assertEquals ("10 " , (string ) $ channel );
56
56
}
57
57
58
58
public function testValue (): void
59
59
{
60
- $ channel = new Cyan (10 );
60
+ $ channel = new Cyan (10 );
61
61
$ this ->assertEquals (10 , $ channel ->value ());
62
62
}
63
63
64
64
public function testNormalize (): void
65
65
{
66
- $ channel = new Cyan (100 );
66
+ $ channel = new Cyan (100 );
67
67
$ this ->assertEquals (1 , $ channel ->normalize ());
68
- $ channel = new Cyan (0 );
68
+ $ channel = new Cyan (0 );
69
69
$ this ->assertEquals (0 , $ channel ->normalize ());
70
- $ channel = new Cyan (20 );
70
+ $ channel = new Cyan (20 );
71
71
$ this ->assertEquals (.2 , $ channel ->normalize ());
72
72
}
73
73
0 commit comments