PHP Class PhpBench\PhpBench

Afficher le fichier Open project: dantleech/phpbench Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
getBootstrapPath ( $configDir, $bootstrap )
loadConfig ( )
parseOption ( $arg, $longName, $shortName = null )

Method Details

normalizePath() public static méthode

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
Résultat string

run() public static méthode

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