PHP Класс PhpSpec\Wrapper\Subject\ExpectationFactory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ExampleNode $example, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, MatcherManager $matchers )
create ( string $expectation, mixed $subject, array $arguments = [] ) : PhpSpec\Wrapper\Subject\Expectation\Expectation

Приватные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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 create ( string $expectation, mixed $subject, array $arguments = [] ) : PhpSpec\Wrapper\Subject\Expectation\Expectation
$expectation string
$subject mixed
$arguments array
Результат PhpSpec\Wrapper\Subject\Expectation\Expectation