PHP Class PHPSpec\Matcher\BasicMatcher

Inheritance: implements PHPSpec\Matcher\Matcher
Afficher le fichier Open project: phpspec/phpspec

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getNegativeFailureException() abstract protected méthode

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

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

matches() abstract protected méthode

abstract protected matches ( mixed $subject, array $arguments ) : boolean
$subject mixed
$arguments array
Résultat boolean

negativeMatch() final public méthode

final public negativeMatch ( string $name, mixed $subject, array $arguments ) : mixed
$name string
$subject mixed
$arguments array
Résultat mixed

positiveMatch() final public méthode

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