Asserts that a string does not match a given format string.
@since Method available since Release 3.5.0
string $formatFile:
string $string:
string $message:
public static function assertStringNotMatchesFormatFile($formatFile, $string, $message = '') {
self::assertFileExists($formatFile, $message);
if (!is_string($string)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'string');
}
$constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_StringMatches(file_get_contents($formatFile)));
self::assertThat($string, $constraint, $message);
}