PHP Class PhpSpec\Formatter\JUnitFormatter

Author: Gildas Quemener ([email protected])
Inheritance: extends BasicFormatter
ファイルを表示 Open project: phpspec/phpspec

Protected Properties

Property Type Description
$exampleStatusCounts array
$jUnitStatuses array
$resultTags array
$testCaseNodes array
$testSuiteNodes array

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 )
getExampleStatusCounts ( ) : array Get example status counts
getTestCaseNodes ( ) : array Get testcase nodes
getTestSuiteNodes ( ) : array Get testsuite nodes
setExampleStatusCounts ( array $exampleStatusCounts ) Set example status counts
setTestCaseNodes ( array $testCaseNodes ) Set testcase nodes
setTestSuiteNodes ( array $testSuiteNodes ) Set testsuite nodes

Protected Methods

Method Description
initTestCaseNodes ( ) Initialize test case nodes and example status counts

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

getExampleStatusCounts() public method

Get example status counts
public getExampleStatusCounts ( ) : array
return array

getTestCaseNodes() public method

Get testcase nodes
public getTestCaseNodes ( ) : array
return array

getTestSuiteNodes() public method

Get testsuite nodes
public getTestSuiteNodes ( ) : array
return array

initTestCaseNodes() protected method

Initialize test case nodes and example status counts
protected initTestCaseNodes ( )

setExampleStatusCounts() public method

Set example status counts
public setExampleStatusCounts ( array $exampleStatusCounts )
$exampleStatusCounts array

setTestCaseNodes() public method

Set testcase nodes
public setTestCaseNodes ( array $testCaseNodes )
$testCaseNodes array

setTestSuiteNodes() public method

Set testsuite nodes
public setTestSuiteNodes ( array $testSuiteNodes )
$testSuiteNodes array

Property Details

$exampleStatusCounts protected_oe property

protected array $exampleStatusCounts
return array

$jUnitStatuses protected_oe property

protected array $jUnitStatuses
return array

$resultTags protected_oe property

protected array $resultTags
return array

$testCaseNodes protected_oe property

protected array $testCaseNodes
return array

$testSuiteNodes protected_oe property

protected array $testSuiteNodes
return array