lithium\test\Unit::assertIdentical()

public method

Assert that the actual result and the expected result are identical using a strict comparison.

Parameters

  • mixed $expected
  • mixed $result
  • string|boolean $message

Returns

boolean

true if the assertion succeeded, false otherwise.

Source

	public function assertIdentical($expected, $result, $message = '{:message}') {
		$data = ($expected !== $result) ? $this->_compare('identical', $expected, $result) : null;
		return $this->assert($expected === $result, $message, $data);
	}