Neos\Fusion\Tests\Unit\Core\Parser\PatternTest::assertRegexMatches PHP Method

assertRegexMatches() protected method

Custom assertion for matching regexes
protected assertRegexMatches ( $testString, $pattern, $expectedMatches, $explanation )
$testString
$pattern
$expectedMatches
$explanation
    protected function assertRegexMatches($testString, $pattern, $expectedMatches, $explanation)
    {
        $matches = array();
        preg_match($pattern, $testString, $matches);
        $this->assertSame($expectedMatches, $matches, $explanation);
    }