PHP Class PhpSpec\Formatter\ProgressFormatter

Inheritance: extends ConsoleFormatter
Show file Open project: phpspec/phpspec

Public Methods

Method Description
afterExample ( ExampleEvent $event )
afterSuite ( SuiteEvent $event )

Private Methods

Method Description
drawStats ( )
formatProgressOutput ( array $barLengths, array $percents, boolean $isDecorated ) : array
getBarLengths ( array $counts ) : array
getPercentages ( $total, $counts ) : array
updateProgressBar ( ConsoleIO $io, array $progress, integer $total )

Method Details

afterExample() public method

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

afterSuite() public method

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