PhpSpec\Formatter\Presenter\Differ\DifferEngine::supports PHP Метод

supports() публичный Метод

public supports ( mixed $expected, mixed $actual ) : boolean
$expected mixed
$actual mixed
Результат boolean
    public function supports($expected, $actual);

Usage 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');
 }