lithium\test\Unit::assertLessThanOrEqual()

public method

Assert that $expected is less than or equal to $actual.

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

Parameters

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

Returns

boolean

true if the assertion succeeded, false otherwise.

Source

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