PHP Class PHPUnit_Util_Fileloader, qcodo

Author: Sebastian Bergmann ([email protected])
显示文件 Open project: qcodo/qcodo Class Usage Examples

Public Methods

Method 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.

Protected Methods

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

Method Details

checkAndLoad() public static method

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
return string

load() public static method

Loads a PHP sourcefile.
public static load ( string $filename ) : mixed
$filename string
return mixed

syntaxCheck() protected static method

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