lithium\test\Unit::assertNotPattern()
Assert that the regular expression $expected
is not matched in the result.
Parameters
-
mixed
$expected
-
mixed
$result
-
string
$message
Returns
booleantrue
if the assertion succeeded, false
otherwise.
Source
public function assertNotPattern($expected, $result, $message = '{:message}') {
list($expected, $result) = $this->_normalizeLineEndings($expected, $result);
$params = compact('expected', 'result');
return $this->assert(!preg_match($expected, $result), $message, $params);
}