PHP Class PHPSpec\Matcher\ArrayKeyValueMatcher

Inheritance: extends BasicMatcher
Mostra file Open project: phpspec/phpspec

Public Methods

Method Description
__construct ( PhpSpec\Formatter\Presenter\Presenter $presenter )
supports ( string $name, mixed $subject, array $arguments ) : boolean

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 ( ArrayAcces\ArrayAccess | array $subject, array $arguments ) : boolean

Private Methods

Method Description
offsetExists ( $key, $subject )

Method Details

__construct() public method

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

getFailureException() protected method

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

getNegativeFailureException() protected method

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

matches() protected method

protected matches ( ArrayAcces\ArrayAccess | array $subject, array $arguments ) : boolean
$subject ArrayAcces\ArrayAccess | array
$arguments array
return boolean

supports() public method

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