in src/Assert.hack [510:526]
public function assertNotRegExp(
string $expected,
string $actual,
string $message = '',
): void {
if (\preg_match($expected, $actual) === 0) {
return;
}
throw new ExpectationFailedException(
Str\format(
"%s\nFailed asserting that %s does not match PCRE pattern %s",
$message,
$actual,
$expected,
),
);
}