PHP Class PhpSpec\Formatter\ConsoleFormatter

Inheritance: extends BasicFormatter
Show file Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( PhpSpec\Formatter\Presenter\Presenter $presenter, ConsoleIO $io, PhpSpec\Listener\StatisticsCollector $stats )
displayFatal ( PhpSpec\Message\CurrentExampleTracker $currentExample, $error )

Protected Methods

Method Description
getIO ( ) : ConsoleIO
printException ( ExampleEvent $event )
printSpecificException ( ExampleEvent $event, string $type )

Method Details

__construct() public method

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

displayFatal() public method

public displayFatal ( PhpSpec\Message\CurrentExampleTracker $currentExample, $error )
$currentExample PhpSpec\Message\CurrentExampleTracker

getIO() protected method

protected getIO ( ) : ConsoleIO
return PhpSpec\Console\ConsoleIO

printException() protected method

protected printException ( ExampleEvent $event )
$event PhpSpec\Event\ExampleEvent

printSpecificException() protected method

protected printSpecificException ( ExampleEvent $event, string $type )
$event PhpSpec\Event\ExampleEvent
$type string