You are here

function contains in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert/Functions.php \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

13 string references to 'contains'
FilterCombineTest::testFilterCombineContains in core/modules/views/src/Tests/Handler/FilterCombineTest.php
FilterCombineTest::testFilterCombineContainsFieldsOverwritten in core/modules/views/src/Tests/Handler/FilterCombineTest.php
Tests if the filter can handle removed fields.
FilterStringTest::getGroupedExposedFilters in core/modules/views/src/Tests/Handler/FilterStringTest.php
FilterStringTest::testFilterStringContains in core/modules/views/src/Tests/Handler/FilterStringTest.php
StringFilter::operators in core/modules/views/src/Plugin/views/filter/StringFilter.php
This kind of construct makes it relatively easy for a child class to add or remove functionality by overriding this function and adding/removing items from this array.

... See full list

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 1884

Code

function contains($value, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false) {
  return call_user_func_array('PHPUnit_Framework_Assert::contains', func_get_args());
}