lithium\test\Unit::assertLessThan()
Assert that $expected
is less than $actual
.
$this->assertLessThan(3, 5); // succeeds
$this->assertLessThan(5, 3); // fails
Parameters
-
float|integer
$expected
-
float|integer
$actual
-
string|boolean
$message
Returns
booleantrue
if the assertion succeeded, false
otherwise.
Source
public function assertLessThan($expected, $actual, $message = '{:message}') {
return $this->assert($expected < $actual, $message, [
'expected' => $expected,
'result' => $actual
]);
}