Constraint that accepts classes that extend given class.

Constraint that accepts objects, classes, traits and interfaces having given method.

Constraint that accepts arrays of matches returned from preg_match() having capture groups as specified in the array of expectations.

Constraint that accepts classes that implement given interface.

Constraint that accepts classes that extend given class.

Abstract base class for inheritance constraints (ExtendsClass, ImplementsInterface, UsesTrait, etc.).

Specifies requirements on method including its name and modifiers.

Specifies requirements on method including its name and modifiers.

Example constraint class that extends the AbstractConstraint.

A constraint evaluation result (either expected, or actual).