\PHPUnit_Framework_Constraint_StringMatches

...

Synopsis

class PHPUnit_Framework_Constraint_StringMatches extends PHPUnit_Framework_Constraint_PCREMatch {
  • // members
  • protected string $string;
  • // Inherited members from PHPUnit_Framework_Constraint_PCREMatch
  • protected string $pattern;
  • // Inherited members from PHPUnit_Framework_Constraint
  • protected $exporter;
  • // Inherited methods from PHPUnit_Framework_Constraint_PCREMatch
  • public void __construct()
  • protected bool matches()
  • public string toString()
}

Hierarchy

Members

protected

  • $exporter
  • $pattern — string
  • $string — string

Methods

protected

Inherited from PHPUnit_Framework_Constraint_PCREMatch

protected

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

public

  • toString() — Returns a string representation of the constraint.

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