lithium\test\Unit::assertFalse()
Assert that the result strictly is false
.
$this->assertFalse(false, 'Boolean false'); // succeeds
$this->assertFalse('', 'String is empty'); // fails
$this->assertFalse(0, 'Zero value'); // fails
Parameters
-
mixed
$result
-
string
$message
Returns
booleantrue
if the assertion succeeded, false
otherwise.
Source
public function assertFalse($result, $message = '{:message}') {
$expected = false;
return $this->assert($result === $expected, $message, compact('expected', 'result'));
}