PHP Class PHPSpec\Matcher\ScalarMatcher

Inheritance: implements PHPSpec\Matcher\Matcher
Mostra file Open project: phpspec/phpspec

Public Methods

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

Private Methods

Method Description
getCheckerName ( string $name ) : string | boolean

Method Details

__construct() public method

public __construct ( PhpSpec\Formatter\Presenter\Presenter $presenter )
$presenter PhpSpec\Formatter\Presenter\Presenter

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 ) : boolean
$name string
$subject mixed
$arguments array
return boolean

positiveMatch() public method

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

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