PHP Класс PHPSpec2\Runner\Runner

Показать файл Открыть проект

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

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