PHP Class PhpSpec\Runner\ExampleRunner

Mostra file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, PhpSpec\Formatter\Presenter\Presenter $presenter )
registerMaintainer ( PhpSpec\Runner\Maintainer\Maintainer $maintainer )
run ( ExampleNode $example ) : integer

Protected Methods

Method Description
executeExample ( PhpSpec\Specification $context, ExampleNode $example )

Private Methods

Method Description
runMaintainersTeardown ( array $maintainers, ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
searchExceptionMaintainers ( array $maintainers ) : PhpSpec\Runner\Maintainer\Maintainer[]

Method Details

__construct() public method

public __construct ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, PhpSpec\Formatter\Presenter\Presenter $presenter )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$presenter PhpSpec\Formatter\Presenter\Presenter

executeExample() protected method

protected executeExample ( PhpSpec\Specification $context, ExampleNode $example )
$context PhpSpec\Specification
$example PhpSpec\Loader\Node\ExampleNode

registerMaintainer() public method

public registerMaintainer ( PhpSpec\Runner\Maintainer\Maintainer $maintainer )
$maintainer PhpSpec\Runner\Maintainer\Maintainer

run() public method

public run ( ExampleNode $example ) : integer
$example PhpSpec\Loader\Node\ExampleNode
return integer