PHP Class PHPUnit_Util_Fileloader, qcodo

Author: Sebastian Bergmann ([email protected])
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Méthodes publiques

Méthode Description
checkAndLoad ( string $filename, boolean $syntaxCheck = FALSE ) : string Checks if a PHP sourcefile is readable and is optionally checked for syntax errors through the syntaxCheck() method. The sourcefile is loaded through the load() method.
load ( string $filename ) : mixed Loads a PHP sourcefile.

Méthodes protégées

Méthode Description
syntaxCheck ( string $filename ) Uses a separate process to perform a syntax check on a PHP sourcefile.

Method Details

checkAndLoad() public static méthode

Checks if a PHP sourcefile is readable and is optionally checked for syntax errors through the syntaxCheck() method. The sourcefile is loaded through the load() method.
public static checkAndLoad ( string $filename, boolean $syntaxCheck = FALSE ) : string
$filename string
$syntaxCheck boolean
Résultat string

load() public static méthode

Loads a PHP sourcefile.
public static load ( string $filename ) : mixed
$filename string
Résultat mixed

syntaxCheck() protected static méthode

Uses a separate process to perform a syntax check on a PHP sourcefile.
protected static syntaxCheck ( string $filename )
$filename string