PHP Class PhpSpec\Formatter\BasicFormatter

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Mostra file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( PhpSpec\Formatter\Presenter\Presenter $presenter, PhpSpec\IO\IO $io, PhpSpec\Listener\StatisticsCollector $stats )
afterExample ( ExampleEvent $event )
afterSpecification ( SpecificationEvent $event )
afterSuite ( SuiteEvent $event )
beforeExample ( ExampleEvent $event )
beforeSpecification ( SpecificationEvent $event )
beforeSuite ( SuiteEvent $event )
getSubscribedEvents ( ) : array

Protected Methods

Method Description
getIO ( ) : PhpSpec\IO\IO
getPresenter ( ) : PhpSpec\Formatter\Presenter\Presenter
getStatisticsCollector ( ) : PhpSpec\Listener\StatisticsCollector

Method Details

__construct() public method

public __construct ( PhpSpec\Formatter\Presenter\Presenter $presenter, PhpSpec\IO\IO $io, PhpSpec\Listener\StatisticsCollector $stats )
$presenter PhpSpec\Formatter\Presenter\Presenter
$io PhpSpec\IO\IO
$stats PhpSpec\Listener\StatisticsCollector

afterExample() public method

public afterExample ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent

afterSpecification() public method

public afterSpecification ( SpecificationEvent $event )
$event PhpSpec\Event\SpecificationEvent

afterSuite() public method

public afterSuite ( SuiteEvent $event )
$event PhpSpec\Event\SuiteEvent

beforeExample() public method

public beforeExample ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent

beforeSpecification() public method

public beforeSpecification ( SpecificationEvent $event )
$event PhpSpec\Event\SpecificationEvent

beforeSuite() public method

public beforeSuite ( SuiteEvent $event )
$event PhpSpec\Event\SuiteEvent

getIO() protected method

protected getIO ( ) : PhpSpec\IO\IO
return PhpSpec\IO\IO

getPresenter() protected method

protected getPresenter ( ) : PhpSpec\Formatter\Presenter\Presenter
return PhpSpec\Formatter\Presenter\Presenter

getStatisticsCollector() protected method

protected getStatisticsCollector ( ) : PhpSpec\Listener\StatisticsCollector
return PhpSpec\Listener\StatisticsCollector

getSubscribedEvents() public static method

public static getSubscribedEvents ( ) : array
return array