file-fetcher
Static Public Member Functions | List of all members
PHPUnit\Util\FileLoader Class Reference

Static Public Member Functions

static checkAndLoad (string $filename)
 
static load (string $filename)
 

Member Function Documentation

◆ checkAndLoad()

static PHPUnit\Util\FileLoader::checkAndLoad ( string  $filename)
static

Checks if a PHP sourcecode file is readable. The sourcecode file is loaded through the load() method.

As a fallback, PHP looks in the directory of the file executing the stream_resolve_include_path function. We do not want to load the Test.php file here, so skip it if it found that. PHP prioritizes the include_path setting, so if the current directory is in there, it will first look in the current working directory.

Exceptions
Exception

◆ load()

static PHPUnit\Util\FileLoader::load ( string  $filename)
static

Loads a PHP sourcefile.


The documentation for this class was generated from the following file: