public static function assertStringMatchesFormatFile($formatFile, $string, $message = '')
{
static::assertFileExists($formatFile, $message);
if (!is_string($string)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
}
$constraint = new PHPUnit_Framework_Constraint_StringMatches(file_get_contents($formatFile));
static::assertThat($string, $constraint, $message);
}