dev/RouterDev.php
public function static_file_custom(
		string $path, int $cache=0, $disposition=null
	) {
		self::reset();
		if (file_exists($path)) {
			self::$code = 200;
			self::$body_raw = file_get_contents($path);
			self::$body = "Path: $path";
			self::$errno = 0;
			self::$data = [$path];
		} else {
			self::$code = 404;
		}
	}
public function static_file_custom(
		string $path, int $cache=0, $disposition=null
	) {
		self::reset();
		if (file_exists($path)) {
			self::$code = 200;
			self::$body_raw = file_get_contents($path);
			self::$body = "Path: $path";
			self::$errno = 0;
			self::$data = [$path];
		} else {
			self::$code = 404;
		}
	}
public function static_file_custom ( string $ path , int $ cache = 0 , $ disposition = null ) { self :: reset ( ) ; if ( file_exists ( $ path ) ) { self :: $ code = 200 ; self :: $ body_raw = file_get_contents ( $ path ) ; self :: $ body = "Path: $path" ; self :: $ errno = 0 ; self :: $ data = [ $ path ] ; } else { self :: $ code = 404 ; } }
Custom static file serving for testing.

@param string $path Absolute path to file.
@param int $cache Cache age in seconds.
@param mixed $disposition If string, use it as
content-disposition in header. If true, infer from basename.
If null, no content-disposition header is sent.

@cond
@SuppressWarnings(PHPMD.UnusedFormalParameter)
@endcond
Custom static file serving for testing .