public static function makeFilesCage($config_file = null, $strict = true) { /** * @staticvar $_instance */ static $_instance; if (!isset($_instance)) { $_instance = Cage::factory($_FILES, $config_file, '_FILES', $strict); } $GLOBALS['HTTP_POST_FILES'] = null; return $_instance; }
/** * */ public function testMakeFilesCage() { $cage = Inspekt::makeFilesCage(); $this->assertTrue($cage instanceof Cage); }