This utilizes a singleton pattern to get around scoping issues
public static makeFilesCage ( string $config_file = null, boolean $strict = true ) : |
||
$config_file | string | |
$strict | boolean | whether or not to nullify the superglobal array |
Результат |
/** * */ public function testMakeFilesCage() { $cage = Inspekt::makeFilesCage(); $this->assertTrue($cage instanceof Cage); }