PHP Class PhpSpec\Formatter\TapFormatter

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

Public Methods

Method Description
afterExample ( ExampleEvent $event )
afterSuite ( SuiteEvent $event )
beforeSpecification ( SpecificationEvent $event )
beforeSuite ( SuiteEvent $event )

Private Methods

Method Description
getResultData ( ExampleEvent $event, integer $result = null ) : string Format message as two-space indented YAML when needed outside of a SKIP or TODO directive.
indent ( string $string ) : string
stripNewlines ( string $string ) : string

Method Details

afterExample() public method

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

afterSuite() public method

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

beforeSpecification() public method

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

beforeSuite() public method

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