PHP 클래스 PHPSpec2\Runner\Runner

파일 보기 프로젝트 열기: phpspec/phpspec2

공개 메소드들

메소드 설명
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, MatchersCollection $matchers, PHPSpec2\Mocker\MockerInterface $mocker, ArgumentsUnwrapper $unwrapper )
errorHandler ( integer $level, string $message, string $file, integer $line ) : boolean Custom error handler.
getEventDispatcher ( )
runExample ( Example $example )
runSpecification ( Specification $specification )

보호된 메소드들

메소드 설명
createContext ( Example $example )
createMockProphet ( $subject = null )
getExampleDependencies ( Example $example, $context )

비공개 메소드들

메소드 설명
getDependencies ( ReflectionFunctionAbstract $function, array $dependencies )
invoke ( $context, ReflectionFunctionAbstract $function, array $dependencies )

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, MatchersCollection $matchers, PHPSpec2\Mocker\MockerInterface $mocker, ArgumentsUnwrapper $unwrapper )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$matchers PHPSpec2\Matcher\MatchersCollection
$mocker PHPSpec2\Mocker\MockerInterface
$unwrapper PHPSpec2\Wrapper\ArgumentsUnwrapper

createContext() 보호된 메소드

protected createContext ( Example $example )
$example PHPSpec2\Loader\Node\Example

createMockProphet() 보호된 메소드

protected createMockProphet ( $subject = null )

errorHandler() 최종 공개 메소드

This method used as custom error handler when step is running.
또한 보기: set_error_handler()
final public errorHandler ( integer $level, string $message, string $file, integer $line ) : boolean
$level integer
$message string
$file string
$line integer
리턴 boolean

getEventDispatcher() 공개 메소드

public getEventDispatcher ( )

getExampleDependencies() 보호된 메소드

protected getExampleDependencies ( Example $example, $context )
$example PHPSpec2\Loader\Node\Example

runExample() 공개 메소드

public runExample ( Example $example )
$example PHPSpec2\Loader\Node\Example

runSpecification() 공개 메소드

public runSpecification ( Specification $specification )
$specification PHPSpec2\Loader\Node\Specification