PHP Class PHPSpec\Matcher\ThrowMatcher

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

Public Methods

Method Description
__construct ( Unwrapper $unwrapper, PhpSpec\Formatter\Presenter\Presenter $presenter, PhpSpec\Factory\ReflectionFactory $factory )
getPriority ( ) : integer
negativeMatch ( string $name, mixed $subject, array $arguments ) : PhpSpec\Wrapper\DelayedCall
positiveMatch ( string $name, mixed $subject, array $arguments ) : PhpSpec\Wrapper\DelayedCall
supports ( string $name, mixed $subject, array $arguments ) : boolean
verifyNegative ( callable $callable, array $arguments, string | null | object $exception = null )
verifyPositive ( callable $callable, array $arguments, null | object | string $exception = null )

Private Methods

Method Description
getDelayedCall ( callable $check, mixed $subject, array $arguments ) : PhpSpec\Wrapper\DelayedCall
getException ( array $arguments ) : null | string

Method Details

__construct() public method

public __construct ( Unwrapper $unwrapper, PhpSpec\Formatter\Presenter\Presenter $presenter, PhpSpec\Factory\ReflectionFactory $factory )
$unwrapper PhpSpec\Wrapper\Unwrapper
$presenter PhpSpec\Formatter\Presenter\Presenter
$factory PhpSpec\Factory\ReflectionFactory

getPriority() public method

public getPriority ( ) : integer
return integer

negativeMatch() public method

public negativeMatch ( string $name, mixed $subject, array $arguments ) : PhpSpec\Wrapper\DelayedCall
$name string
$subject mixed
$arguments array
return PhpSpec\Wrapper\DelayedCall

positiveMatch() public method

public positiveMatch ( string $name, mixed $subject, array $arguments ) : PhpSpec\Wrapper\DelayedCall
$name string
$subject mixed
$arguments array
return PhpSpec\Wrapper\DelayedCall

supports() public method

public supports ( string $name, mixed $subject, array $arguments ) : boolean
$name string
$subject mixed
$arguments array
return boolean

verifyNegative() public method

public verifyNegative ( callable $callable, array $arguments, string | null | object $exception = null )
$callable callable
$arguments array
$exception string | null | object

verifyPositive() public method

public verifyPositive ( callable $callable, array $arguments, null | object | string $exception = null )
$callable callable
$arguments array
$exception null | object | string