PHP Class PhpBench\PhpBench

Datei anzeigen Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
normalizePath ( string $path ) : string If the path is relative we need to use the current working path because otherwise it will be the script path, which is wrong in the context of a PHAR.
run ( Composer\Autoload\ClassLoader $autoloader )

Private Methods

Method Description
getBootstrapPath ( $configDir, $bootstrap )
loadConfig ( )
parseOption ( $arg, $longName, $shortName = null )

Method Details

normalizePath() public static method

If the path is relative we need to use the current working path because otherwise it will be the script path, which is wrong in the context of a PHAR.
public static normalizePath ( string $path ) : string
$path string
return string

run() public static method

public static run ( Composer\Autoload\ClassLoader $autoloader )
$autoloader Composer\Autoload\ClassLoader