lithium\test\Unit::assertNotNull PHP Method

assertNotNull() public method

$this->assertNotNull(1); // succeeds $this->assertNotNull(null); // fails
See also: lithium\test\Unit::assert()
public assertNotNull ( $actual, string $message = '{:message}' ) : boolean
$message string
return boolean `true` if the assertion succeeded, `false` otherwise.
    public function assertNotNull($actual, $message = '{:message}')
    {
        return $this->assert($actual !== null, $message, array('expected' => null, 'actual' => gettype($actual)));
    }