PHP Class VersionPress\Tests\Utils\TestRunnerOptions

- option-name on command line (written as --option-name=... - VP_OPTION_NAME as an environment variable - optionName as a property on this class Command-line parameters take precedence over env variables.
Afficher le fichier Open project: versionpress/versionpress Class Usage Examples

Méthodes publiques

Свойство Type Description
$forceSetup string

Méthodes publiques

Méthode Description
configureInstance ( $optionsSpecification )
getInstance ( )

Méthodes protégées

Méthode Description
__construct ( )

Private Methods

Méthode Description
getCliArgValue ( $testingOptionInPropertyConvention ) : string | boolean Wrapper around getopt() that supports property naming convention, e.g., 'optionName' instead of '--option-name'
getEnvVarValue ( string $testingOptionInPropertyConvention ) : string | boolean Small wrapper around getenv() that properly converts something like 'optionName' to 'VP_OPTION_NAME'.

Method Details

__construct() protected méthode

protected __construct ( )

configureInstance() public méthode

public configureInstance ( $optionsSpecification )

getInstance() public static méthode

public static getInstance ( )

Property Details

$forceSetup public_oe property

public string $forceSetup
Résultat string