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