PHP 클래스 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.
파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$forceSetup string

공개 메소드들

메소드 설명
configureInstance ( $optionsSpecification )
getInstance ( )

보호된 메소드들

메소드 설명
__construct ( )

비공개 메소드들

메소드 설명
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'.

메소드 상세

__construct() 보호된 메소드

protected __construct ( )

configureInstance() 공개 메소드

public configureInstance ( $optionsSpecification )

getInstance() 공개 정적인 메소드

public static getInstance ( )

프로퍼티 상세

$forceSetup 공개적으로 프로퍼티

public string $forceSetup
리턴 string