Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • AbstractBaseReporter
  • AnonymousReporter
  • CompositeReporter
  • ReporterFactory
  • SpecReporter

Interfaces

  • ReporterInterface
  • Overview
  • Namespace
  • Class

Class ReporterFactory

The ReporterFactory is used to list and register Peridot reporters.

Peridot\Reporter\ReporterFactory uses Peridot\Core\HasEventEmitterTrait
Namespace: Peridot\Reporter
Package: Peridot\Reporter
Located at Reporter/ReporterFactory.php
Methods summary
public
# __construct( Peridot\Configuration $configuration, Symfony\Component\Console\Output\OutputInterface $output, Evenement\EventEmitterInterface $eventEmitter )

Parameters

$configuration
$output
$eventEmitter
public Peridot\Reporter\AbstractBaseReporter
# create( $name )

Return an instance of the named reporter

Return an instance of the named reporter

Parameters

$name

Returns

Peridot\Reporter\AbstractBaseReporter
public Peridot\Reporter\AbstractBaseReporter
# createComposite( array $names )

Return an instance of the named reporter

Return an instance of the named reporter

Parameters

$names

Returns

Peridot\Reporter\AbstractBaseReporter
public null|string|callable
# getReporterFactory( string $name )

Return the factory defined for the named reporter

Return the factory defined for the named reporter

Parameters

$name

Returns

null|string|callable
public array
# getReporterDefinition( string $name )

Return the definition of the named reporter

Return the definition of the named reporter

Parameters

$name

Returns

array
public
# register( string $name, string $description, string $factory )

Register a named reporter with the factory.

Register a named reporter with the factory.

Parameters

$name
$description
$factory
Either a callable or a fully qualified class name
public array
# getReporters( )

Returns

array
Methods used from Peridot\Core\HasEventEmitterTrait
getEventEmitter(), setEventEmitter()
Properties summary
protected Peridot\Configuration $configuration
#
protected Peridot\Runner\Runner $runner
#
protected Symfony\Component\Console\Output\OutputInterface $output
#
protected array $reporters

Registered reporters

Registered reporters

# array( 'spec' => ['description' => 'hierarchical spec list', 'factory' => 'Peridot\Reporter\SpecReporter'] )
Properties used from Peridot\Core\HasEventEmitterTrait
$eventEmitter
Peridot API documentation generated by ApiGen