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
Public Methods
Protected Methods
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
getInstance()
public static method
Property Details
$forceSetup public_oe property
public string $forceSetup |
return |
string |
|