You are here

public static function PHPUnit_Framework_Assert::logicalXor in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_Xor matcher object.

@since Method available since Release 3.0.0

Return value

PHPUnit_Framework_Constraint_Xor

1 call to PHPUnit_Framework_Assert::logicalXor()
Framework_AssertTest::testAssertThatAnythingXorNotAnything in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_Assert::logicalXor

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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