lithium\test\Unit::assertEqual()

public method

Assert that the actual result is equal, but not neccessarily identical, to the expected result.

Parameters

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

Returns

boolean

true if the assertion succeeded, false otherwise.

Source

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