PHP Class Peridot\Configuration

Afficher le fichier Open project: peridot-php/peridot Class Usage Examples

Protected Properties

Свойство Type Description
$colorsEnableExplicit boolean
$colorsEnabled boolean
$configurationFile string
$dsl string
$grep string
$path string
$reporter string
$stopOnFailure boolean

Méthodes publiques

Méthode Description
__construct ( )
areColorsEnabled ( ) : boolean Check if output colors are disabled
areColorsEnabledExplicit ( ) : boolean Check if output colors are explicitly enabled.
disableColors ( ) Disable output colors
enableColorsExplicit ( ) Force output colors even without TTY support.
getConfigurationFile ( ) : string Return the path to the Peridot configuration file. Returns a relative path if it exists, otherwise return the provided value
getDsl ( ) : string Get the path to a DSL file containing test functions to use
getGrep ( ) : string Returns the pattern used to load tests
getPath ( ) : string Return the path being searched for tests
getReporter ( ) : string Return the name of the reporter configured for use
setConfigurationFile ( string $configurationFile ) Set the path to a Peridot configuration file
setDsl ( string $dsl ) Set the path to a DSL file for defining the test language used
setGrep ( string $grep ) Set the pattern used to load tests
setPath ( string $path ) Set the path to load tests from
setReporter ( string $reporter ) Set the name of the reporter to use
shouldStopOnFailure ( ) : boolean Check if the suite runner should stop on failure
stopOnFailure ( ) Stop the suite runner when a failure occurs

Méthodes protégées

Méthode Description
write ( $varName, $value ) Write a configuration value and persist it to the current environment.

Method Details

__construct() public méthode

public __construct ( )

areColorsEnabled() public méthode

Check if output colors are disabled
public areColorsEnabled ( ) : boolean
Résultat boolean

areColorsEnabledExplicit() public méthode

Check if output colors are explicitly enabled.
public areColorsEnabledExplicit ( ) : boolean
Résultat boolean

disableColors() public méthode

Disable output colors
public disableColors ( )

enableColorsExplicit() public méthode

Force output colors even without TTY support.

getConfigurationFile() public méthode

Return the path to the Peridot configuration file. Returns a relative path if it exists, otherwise return the provided value
public getConfigurationFile ( ) : string
Résultat string

getDsl() public méthode

Get the path to a DSL file containing test functions to use
public getDsl ( ) : string
Résultat string

getGrep() public méthode

Returns the pattern used to load tests
public getGrep ( ) : string
Résultat string

getPath() public méthode

Return the path being searched for tests
public getPath ( ) : string
Résultat string

getReporter() public méthode

Return the name of the reporter configured for use
public getReporter ( ) : string
Résultat string

setConfigurationFile() public méthode

Set the path to a Peridot configuration file
public setConfigurationFile ( string $configurationFile )
$configurationFile string

setDsl() public méthode

Set the path to a DSL file for defining the test language used
public setDsl ( string $dsl )
$dsl string

setGrep() public méthode

Set the pattern used to load tests
public setGrep ( string $grep )
$grep string

setPath() public méthode

Set the path to load tests from
public setPath ( string $path )
$path string

setReporter() public méthode

Set the name of the reporter to use
public setReporter ( string $reporter )
$reporter string

shouldStopOnFailure() public méthode

Check if the suite runner should stop on failure
public shouldStopOnFailure ( ) : boolean
Résultat boolean

stopOnFailure() public méthode

Stop the suite runner when a failure occurs
public stopOnFailure ( )

write() protected méthode

Write a configuration value and persist it to the current environment.
protected write ( $varName, $value )
$varName
$value

Property Details

$colorsEnableExplicit protected_oe property

protected bool $colorsEnableExplicit
Résultat boolean

$colorsEnabled protected_oe property

protected bool $colorsEnabled
Résultat boolean

$configurationFile protected_oe property

protected string $configurationFile
Résultat string

$dsl protected_oe property

protected string $dsl
Résultat string

$grep protected_oe property

protected string $grep
Résultat string

$path protected_oe property

protected string $path
Résultat string

$reporter protected_oe property

protected string $reporter
Résultat string

$stopOnFailure protected_oe property

protected bool $stopOnFailure
Résultat boolean