PHP Class PHPSpec\Matcher\ApproximatelyMatcher

Inheritance: extends BasicMatcher
Exibir arquivo 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 ( $name, $subject, array $arguments )
getNegativeFailureException ( $name, $subject, array $arguments )
matches ( mixed $subject, array $arguments ) : boolean

Method Details

__construct() public method

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

getFailureException() protected method

protected getFailureException ( $name, $subject, array $arguments )
$arguments array

getNegativeFailureException() protected method

protected getNegativeFailureException ( $name, $subject, array $arguments )
$arguments array

matches() protected method

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

supports() public method

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