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