lithium\test\Unit::assertGreaterThan()
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
booleantrue
if the assertion succeeded, false
otherwise.
Source
public function assertGreaterThan($expected, $actual, $message = '{:message}') {
return $this->assert($expected > $actual, $message, [
'expected' => $expected,
'result' => $actual
]);
}