lithium\test\Unit::assertFalse()

public method

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

boolean

true if the assertion succeeded, false otherwise.

Source

	public function assertFalse($result, $message = '{:message}') {
		$expected = false;
		return $this->assert($result === $expected, $message, compact('expected', 'result'));
	}