lithium\test\Unit::assertNotPattern PHP Метод

assertNotPattern() публичный Метод

Assert that the regular expression $expected is *not* matched in the result.
См. также: lithium\test\Unit::assert()
public assertNotPattern ( mixed $expected, mixed $result, string $message = '{:message}' ) : boolean
$expected mixed
$result mixed
$message string
Результат boolean `true` if the assertion succeeded, `false` otherwise.
    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);
    }