PHP Class PHPSpec\Matcher\BasicMatcher

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

Public Methods

Method Description
getPriority ( ) : integer
negativeMatch ( string $name, mixed $subject, array $arguments ) : mixed
positiveMatch ( string $name, mixed $subject, array $arguments ) : mixed

Protected Methods

Method Description
getFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\FailureException
getNegativeFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\FailureException
matches ( mixed $subject, array $arguments ) : boolean

Method Details

getFailureException() abstract protected method

abstract protected getFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\FailureException
$name string
$subject mixed
$arguments array
return PhpSpec\Exception\Example\FailureException

getNegativeFailureException() abstract protected method

abstract protected getNegativeFailureException ( string $name, mixed $subject, array $arguments ) : PhpSpec\Exception\Example\FailureException
$name string
$subject mixed
$arguments array
return PhpSpec\Exception\Example\FailureException

getPriority() public method

public getPriority ( ) : integer
return integer

matches() abstract protected method

abstract protected matches ( mixed $subject, array $arguments ) : boolean
$subject mixed
$arguments array
return boolean

negativeMatch() final public method

final public negativeMatch ( string $name, mixed $subject, array $arguments ) : mixed
$name string
$subject mixed
$arguments array
return mixed

positiveMatch() final public method

final public positiveMatch ( string $name, mixed $subject, array $arguments ) : mixed
$name string
$subject mixed
$arguments array
return mixed @throws FailureException