Pantheon\Terminus\FeatureTests\FeatureContext::checkResult PHP Метод

checkResult() приватный Метод

Checks the the haystack for the needle
private checkResult ( [string] $needle, [string] $haystack ) : [boolean]
$needle [string]
$haystack [string]
Результат [boolean]
    private function checkResult($needle, $haystack)
    {
        $needle = $this->replacePlaceholders($needle);
        $result = preg_match("#" . preg_quote($needle, '#') . '#s', $haystack);
        return $result;
    }