for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare( strict_types = 1 );
namespace Diff\Tests\Fixtures;
use Diff\Comparer\ValueComparer;
/**
* @license GPL-2.0+
* @author Jeroen De Dauw < [email protected] >
*/
class StubValueComparer implements ValueComparer {
private $returnValue;
public function __construct( bool $returnValue ) {
$this->returnValue = $returnValue;
}
// @codingStandardsIgnoreStart
public function valuesAreEqual( $firstValue, $secondValue ): bool {
// @codingStandardsIgnoreEnd
return $this->returnValue;