\PHPUnit_Framework_Constraint

Abstract base class for constraints. which are placed upon any value.

Synopsis

class PHPUnit_Framework_Constraint implements Countable,PHPUnit_Framework_SelfDescribing {
}

Hierarchy

Extended by

Implements

Violations

PHPMessDetector

Line Rule Message
112 UnusedFormalParameter Avoid unused parameters such as '$other'.
168 UnusedFormalParameter Avoid unused parameters such as '$other'.

Checkstyle

Line Column Severity Message
136 124 warning Line exceeds 120 characters; contains 123 characters

Members

protected

  • $exporter

Methods

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

History