lithium\test\Unit::assertNull()

public method

Assert that the result is strictly null.

Parameters

  • mixed $result
  • string $message

Returns

boolean

true if the assertion succeeded, false otherwise.

Source

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