You are here

public static function PHPUnit_Framework_Assert::logicalOr in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_Or matcher object.

@since Method available since Release 3.0.0

Return value

PHPUnit_Framework_Constraint_Or

3 calls to PHPUnit_Framework_Assert::logicalOr()
Framework_AssertTest::testAssertThatAnythingOrAnything in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalOr
PHPUnit_Framework_Assert::greaterThanOrEqual in vendor/phpunit/phpunit/src/Framework/Assert.php
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
PHPUnit_Framework_Assert::lessThanOrEqual in vendor/phpunit/phpunit/src/Framework/Assert.php
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function logicalOr() {
  $constraints = func_get_args();
  $constraint = new PHPUnit_Framework_Constraint_Or();
  $constraint
    ->setConstraints($constraints);
  return $constraint;
}