PHPUnit_Framework_Assert::assertSelectEquals
assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
- Author: Mike Naberezny <mike@maintainable.com>
Signature
public function assertSelectEquals(array
$selector,
[string
$content = '',
[integer|boolean|array
$count = '',
[mixed
$actual = '',
[string
$message = '',
[boolean
$isHtml = true]]]]] )
Parameters
$selector
— array$content
— string$count
— object
$actual
— mixed$message
— string$isHtml
— boolean
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
2009 - 2057 | CyclomaticComplexity | The method assertSelectEquals() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
2025 | 9 | error | Expected "} elseif (...) {\n"; found "} // assert any elements exist if true, assert no elements exist if false\n elseif (...) {\n" |
2034 | 9 | error | Expected "} elseif (...) {\n"; found "} // check for range number of elements\n elseif (...) {\n" |