PHP Class Scalr\Tests\Scripting\GlobalVariablesTest

Since: 5.10.11
Author: Igor Vodiasov ([email protected])
Inheritance: extends Scalr\Tests\TestCase
Show file Open project: scalr/scalr

Protected Properties

Property Type Description
$args array Array of arguments for methods setValues, getValues, listVariables for each scope except SERVER
$vars array Array of Scalr_Scripting_GlobalVariables objects for each scope except SERVER

Public Methods

Method Description
deleteTestVariables ( ) Deletes test variables from all tables
providerLoad ( ) : array Data provider for the testGlobalVariablesFunctional
setUpBeforeClass ( )
tearDownAfterClass ( )
testGlobalVariablesFunctional ( $scope, $action, $var, $expectedResult )

Private Methods

Method Description
getVarTestName ( string $suffix = null ) : string Gets test name for GV

Method Details

deleteTestVariables() public static method

Deletes test variables from all tables
public static deleteTestVariables ( )

providerLoad() public method

Data provider for the testGlobalVariablesFunctional
public providerLoad ( ) : array
return array

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

tearDownAfterClass() public static method

public static tearDownAfterClass ( )

testGlobalVariablesFunctional() public method

public testGlobalVariablesFunctional ( $scope, $action, $var, $expectedResult )

Property Details

$args protected static property

Array of arguments for methods setValues, getValues, listVariables for each scope except SERVER
protected static array $args
return array

$vars protected static property

Array of Scalr_Scripting_GlobalVariables objects for each scope except SERVER
protected static array $vars
return array