\PHPUnit_Framework_Constraint_TraversableContains

Constraint that asserts that the Traversable it is applied to contains a given value.

Synopsis

class PHPUnit_Framework_Constraint_TraversableContains extends PHPUnit_Framework_Constraint {
  • // Inherited members from PHPUnit_Framework_Constraint
  • protected $exporter;
}

Hierarchy

Violations

PHPMessDetector

Line Rule Message
107 - 134 CyclomaticComplexity The method matches() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.

Members

protected

  • $checkForNonObjectIdentity — boolean
  • $checkForObjectIdentity — boolean
  • $exporter
  • $value — mixed

Methods

protected

  • failureDescription() — Returns the description of the failure
  • matches() — Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

public

Inherited from PHPUnit_Framework_Constraint

protected

  • additionalFailureDescription() — Return additional failure description where needed
  • fail() — Throws an exception for the given compared value and test description
  • failureDescription() — Returns the description of the failure
  • matches() — Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

public

  • count() — Counts the number of constraint elements.
  • evaluate() — Evaluates the constraint for parameter $other

History