| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function itTransformsImagesToDifferences() |
||
| 14 | { |
||
| 15 | $transformation = new Difference(); |
||
| 16 | |||
| 17 | $bitmap1 = [[0, 0], [0, 1]]; |
||
| 18 | $bitmap2 = [[1, 0], [0, 0]]; |
||
| 19 | |||
| 20 | $method1 = function($p, $q) { |
||
|
|
|||
| 21 | return $p; |
||
| 22 | }; |
||
| 23 | |||
| 24 | $method2 = function($p, $q) { |
||
| 25 | return $q; |
||
| 26 | }; |
||
| 27 | |||
| 28 | $this->assertEquals($bitmap1, $transformation($bitmap1, $bitmap2, 2, 2, $method1)); |
||
| 29 | $this->assertEquals($bitmap2, $transformation($bitmap1, $bitmap2, 2, 2, $method2)); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.