You are here

public static function PHPUnit_Framework_Assert::assertThat in Zircon Profile 8

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

Evaluates a PHPUnit_Framework_Constraint matcher object.

@since Method available since Release 3.0.0

Parameters

mixed $value:

PHPUnit_Framework_Constraint $constraint:

string $message:

88 calls to PHPUnit_Framework_Assert::assertThat()
Framework_AssertTest::testAssertThatAnything in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything
Framework_AssertTest::testAssertThatAnythingAndAnything in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Assert::logicalAnd
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
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
Framework_AssertTest::testAssertThatArrayHasKey in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::arrayHasKey

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertThat($value, PHPUnit_Framework_Constraint $constraint, $message = '') {
  self::$count += count($constraint);
  $constraint
    ->evaluate($value, $message);
}