PHP Class AppserverIo\Appserver\Core\Utilities\Mock\AppEnvironmentHelperMock

Inheritance: extends AppserverIo\Appserver\Core\Utilities\AppEnvironmentHelper
Datei anzeigen Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Property Type Description
$cachedGlobDirResult AppserverIo\Properties\Properties Cached configuration properties

Public Methods

Method Description
setEnvironmentProperty ( $value )
setGlobDirResult ( array $result ) : void (Pre-) sets the the globDir() method result as a means to stub the method

Protected Methods

Method Description
globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array Parses and returns the directories and files that matches the passed glob pattern in a recursive way (if wanted).

Method Details

globDir() protected static method

Parses and returns the directories and files that matches the passed glob pattern in a recursive way (if wanted).
protected static globDir ( string $pattern, integer $flags, boolean $recursive = true ) : array
$pattern string The glob pattern used to parse the directories
$flags integer The flags passed to the glob function
$recursive boolean Whether or not to parse directories recursively
return array The directories matches the passed glob pattern

setEnvironmentProperty() public static method

public static setEnvironmentProperty ( $value )
$value

setGlobDirResult() public static method

(Pre-) sets the the globDir() method result as a means to stub the method
public static setGlobDirResult ( array $result ) : void
$result array The prepared result
return void

Property Details

$cachedGlobDirResult protected_oe static_oe property

Cached configuration properties
protected static Properties,AppserverIo\Properties $cachedGlobDirResult
return AppserverIo\Properties\Properties