PHP Class PhpSpec\Wrapper\Subject\ExpectationFactory

Show file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( ExampleNode $example, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, MatcherManager $matchers )
create ( string $expectation, mixed $subject, array $arguments = [] ) : PhpSpec\Wrapper\Subject\Expectation\Expectation

Private Methods

Method Description
createDecoratedExpectation ( string $expectation, string $name, mixed $subject, array $arguments ) : PhpSpec\Wrapper\Subject\Expectation\Expectation
createNegative ( string $name, mixed $subject, array $arguments = [] ) : PhpSpec\Wrapper\Subject\Expectation\Expectation
createPositive ( string $name, mixed $subject, array $arguments = [] ) : PhpSpec\Wrapper\Subject\Expectation\Expectation
decoratedExpectation ( PhpSpec\Wrapper\Subject\Expectation\Expectation $expectation, PhpSpec\Matcher\Matcher $matcher ) : ConstructorDecorator
findMatcher ( string $name, mixed $subject, array $arguments = [] ) : PhpSpec\Matcher\Matcher

Method Details

__construct() public method

public __construct ( ExampleNode $example, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, MatcherManager $matchers )
$example PhpSpec\Loader\Node\ExampleNode
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$matchers PhpSpec\Runner\MatcherManager

create() public method

public create ( string $expectation, mixed $subject, array $arguments = [] ) : PhpSpec\Wrapper\Subject\Expectation\Expectation
$expectation string
$subject mixed
$arguments array
return PhpSpec\Wrapper\Subject\Expectation\Expectation