PhpSpec\Formatter\Presenter\Differ\DifferEngine::compare PHP Method

compare() public method

public compare ( mixed $expected, mixed $actual ) : string
$expected mixed
$actual mixed
return string
    public function compare($expected, $actual);

Usage Example

Example #1
0
 function its_constructor_allows_a_list_of_engines(DifferEngine $engine)
 {
     $this->beConstructedWith(array($engine));
     $engine->supports('string1', 'string2')->willReturn(true);
     $engine->compare('string1', 'string2')->willReturn('string1 !== string2');
     $this->compare('string1', 'string2')->shouldReturn('string1 !== string2');
 }