Neos\Fusion\TypoScriptObjects\CaseImplementation::matcherMatched PHP Method

matcherMatched() protected method

If the debug mode is enabled, we have to strip the debug output before comparing the rendered result.
protected matcherMatched ( string $renderedMatcher ) : boolean
$renderedMatcher string
return boolean
    protected function matcherMatched($renderedMatcher)
    {
        if ($this->tsRuntime->isDebugMode()) {
            $renderedMatcher = preg_replace('/\\s*<!--.*?-->\\s*/', '', $renderedMatcher);
        }
        return $renderedMatcher !== self::MATCH_NORESULT;
    }