\PHPUnit_Framework_Constraint_Attribute

  • Author: Sebastian Bergmann <sebastian@phpunit.de>
  • Copyright: 2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
  • License: http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License

Synopsis

class PHPUnit_Framework_Constraint_Attribute extends PHPUnit_Framework_Constraint_Composite {
  • // Inherited members from PHPUnit_Framework_Constraint_Composite
  • protected PHPUnit_Framework_Constraint $innerConstraint;
  • // Inherited members from PHPUnit_Framework_Constraint
  • protected $exporter;
  • // Inherited methods from PHPUnit_Framework_Constraint_Composite
  • public void __construct()
  • public mixed evaluate()
  • public integer count()
}

Hierarchy

Violations

Checkstyle

Line Column Severity Message
90 123 warning Line exceeds 120 characters; contains 122 characters

Members

protected

Methods

protected

public

Inherited from PHPUnit_Framework_Constraint_Composite

public

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

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