PHP Interface PHPSpec2\Matcher\MatcherInterface

Show file Open project: phpspec/phpspec2

Public Methods

Method Description
getPriority ( ) : integer Returns matcher priority.
negativeMatch ( string $name, mixed $subject, array $arguments ) Evaluates negative match.
positiveMatch ( string $name, mixed $subject, array $arguments ) Evaluates positive match.
supports ( string $name, mixed $subject, array $arguments ) : boolean Checks if matcher supports provided subject and matcher name.

Method Details

getPriority() public method

Returns matcher priority.
public getPriority ( ) : integer
return integer

negativeMatch() public method

Evaluates negative match.
public negativeMatch ( string $name, mixed $subject, array $arguments )
$name string
$subject mixed
$arguments array

positiveMatch() public method

Evaluates positive match.
public positiveMatch ( string $name, mixed $subject, array $arguments )
$name string
$subject mixed
$arguments array

supports() public method

Checks if matcher supports provided subject and matcher name.
public supports ( string $name, mixed $subject, array $arguments ) : boolean
$name string
$subject mixed
$arguments array
return boolean