public function createComparisonImageOnDifferences($actualImage,
	                                                   $compareImage,
	                                                   $resultImageName,
	                                                   $resultImageDirectory = '.')
	{
		if(!$this->compare->same($compareImage, $actualImage))
		{
			$this->compare->createComparisonImage($compareImage, $actualImage, $resultImageName, $resultImageDirectory);

			return true;
		}

		return false;
	}
public function createComparisonImageOnDifferences($actualImage,
	                                                   $compareImage,
	                                                   $resultImageName,
	                                                   $resultImageDirectory = '.')
	{
		if(!$this->compare->same($compareImage, $actualImage))
		{
			$this->compare->createComparisonImage($compareImage, $actualImage, $resultImageName, $resultImageDirectory);

			return true;
		}

		return false;
	}
public function createComparisonImageOnDifferences ( $ actualImage , $ compareImage , $ resultImageName , $ resultImageDirectory = '.' ) { if ( ! $ this -> compare -> same ( $ compareImage , $ actualImage ) ) { $ this -> compare -> createComparisonImage ( $ compareImage , $ actualImage , $ resultImageName , $ resultImageDirectory ) ; return true ; } return false ; }
Creates a comparison image when the images looking equal.

@param string $actualImage          Path to the actual image.
@param string $compareImage         Path to expected image.
@param string $resultImageName      Name of result image.
@param string $resultImageDirectory Location of result image.

@return bool True when a compare image was created, false otherwise.
Creates a comparison image when the images looking equal .