PHP 클래스 PhpSpec\Wrapper\Subject\ExpectationFactory

파일 보기 프로젝트 열기: phpspec/phpspec 1 사용 예제들

공개 메소드들

메소드 설명
__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