You are here

public static function PHPUnit_Framework_Assert::assertSelectCount in Zircon Profile 8

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

Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements.

The first argument, $selector, is the CSS selector used to match the elements in the $actual document.

The second argument, $count, can be either boolean or numeric. When boolean, it asserts for presence of elements matching the selector (true) or absence of elements (false). When numeric, it asserts the count of elements.

assertSelectCount("#binder", true, $xml); // any? assertSelectCount(".binder", 3, $xml); // exactly 3?

@since Method available since Release 3.3.0

Parameters

array $selector:

int|bool|array $count:

mixed $actual:

string $message:

bool $isHtml:

Deprecated

@codeCoverageIgnore

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertSelectCount($selector, $count, $actual, $message = '', $isHtml = true) {
  trigger_error(__METHOD__ . ' is deprecated', E_USER_DEPRECATED);
  self::assertSelectEquals($selector, true, $count, $actual, $message, $isHtml);
}