for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Undemanding\Difference\Test\Transformation;
use Undemanding\Difference\Test\Test;
use Undemanding\Difference\Transformation\Difference;
class DifferenceTest extends Test
{
/**
* @test
*/
public function itTransformsImagesToDifferences()
$transformation = new Difference();
$bitmap1 = [[0, 0], [0, 1]];
$bitmap2 = [[1, 0], [0, 0]];
$method1 = function($p, $q) {
$q
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $p;
};
$method2 = function($p, $q) {
return $q;
$this->assertEquals($bitmap1, $transformation($bitmap1, $bitmap2, 2, 2, $method1));
$this->assertEquals($bitmap2, $transformation($bitmap1, $bitmap2, 2, 2, $method2));
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.