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.
Mostra file Open project: versionpress/versionpress Class Usage Examples

Public Properties

Property Type Description
$forceSetup string

Public Methods

Method Description
configureInstance ( $optionsSpecification )
getInstance ( )

Protected Methods

Method Description
__construct ( )

Private Methods

Method 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 method

protected __construct ( )

configureInstance() public method

public configureInstance ( $optionsSpecification )

getInstance() public static method

public static getInstance ( )

Property Details

$forceSetup public_oe property

public string $forceSetup
return string