Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function itScalesDifferences() |
||
15 | { |
||
16 | $transformation = new Scale(); |
||
17 | |||
18 | $bitmap1 = [[0, 0], [0, 1]]; |
||
19 | $expected1 = [[0, 0], [0, 10]]; |
||
20 | |||
21 | $bitmap2 = [[2, 1], [0, 0]]; |
||
22 | $expected2 = [[20, 10], [0, 0]]; |
||
23 | |||
24 | $this->assertEquals($expected1, $transformation($bitmap1, 2, 2, 1, 10)); |
||
25 | $this->assertEquals($expected2, $transformation($bitmap2, 2, 2, 2, 20)); |
||
26 | } |
||
27 | } |
||
28 |