lithium\test\Unit::assertGreaterThan()

public method

Assert that $expected is greater than $actual.

$this->assertGreaterThan(5, 3); // succeeds
$this->assertGreaterThan(3, 5); // fails

Parameters

  • float|integer $expected
  • float|integer $actual
  • string|boolean $message

Returns

boolean

true if the assertion succeeded, false otherwise.

Source

	public function assertGreaterThan($expected, $actual, $message = '{:message}') {
		return $this->assert($expected > $actual, $message, [
			'expected' => $expected,
			'result' => $actual
		]);
	}