You are here

public static function PHPUnit_Framework_Assert::lessThanOrEqual in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::lessThanOrEqual()

Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.

@since Method available since Release 3.1.0

Parameters

mixed $value:

Return value

PHPUnit_Framework_Constraint_Or

6 calls to PHPUnit_Framework_Assert::lessThanOrEqual()
Framework_AssertTest::testAssertThatLessThanOrEqual in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::lessThanOrEqual
Framework_ConstraintTest::testConstraintLessThanOrEqual in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Constraint_LessThan @covers PHPUnit_Framework_Constraint_Or @covers PHPUnit_Framework_Assert::lessThanOrEqual @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintLessThanOrEqual2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Constraint_LessThan @covers PHPUnit_Framework_Constraint_Or @covers PHPUnit_Framework_Assert::lessThanOrEqual @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintNotLessThanOrEqual in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Constraint_LessThan @covers PHPUnit_Framework_Constraint_Or @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::lessThanOrEqual @covers…
Framework_ConstraintTest::testConstraintNotLessThanOrEqual2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Constraint_LessThan @covers PHPUnit_Framework_Constraint_Or @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::lessThanOrEqual @covers…

... See full list

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 2737

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function lessThanOrEqual($value) {
  return self::logicalOr(new PHPUnit_Framework_Constraint_IsEqual($value), new PHPUnit_Framework_Constraint_LessThan($value));
}