You are here

public static function PHPUnit_Framework_Assert::contains in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.

@since Method available since Release 3.0.0

Parameters

mixed $value:

bool $checkForObjectIdentity:

bool $checkForNonObjectIdentity:

Return value

PHPUnit_Framework_Constraint_TraversableContains

1 call to PHPUnit_Framework_Assert::contains()
Framework_AssertTest::testAssertThatContains in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::contains

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function contains($value, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false) {
  return new PHPUnit_Framework_Constraint_TraversableContains($value, $checkForObjectIdentity, $checkForNonObjectIdentity);
}