DoctorTestCase::assertStringDoesNotContain PHP Method

assertStringDoesNotContain() public method

Reports an error if the $string contains $expected. Inverse of assertStringContains().
public assertStringDoesNotContain ( string $expected, string $string, boolean $ignoreInsigificantWhitespace = false ) : boolean
$expected string the needle
$string string the haystack
$ignoreInsigificantWhitespace boolean allows for additional space, tab and newline chars
return boolean
    function assertStringDoesNotContain($expected, $string, $ignoreInsigificantWhitespace = false)
    {
        $contained = $this->inStr($string, $expected, $ignoreInsigificantWhitespace);
        return $this->assertFalse($contained);
    }