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