FakeSystemChecker
extends SystemChecker
in package
A SystemChecker fake for automated testing
Tags
Table of Contents
Methods
- __construct() : mixed
- checkExtension() : bool
- checkGdFeature() : bool
- Wraps the most relevant features reported by gd_info()
- checkGdFreetype() : bool
- checkGdPng() : bool
- checkPlugin() : bool
- checkVersion() : bool
- checkWritability() : bool
Methods
__construct()
public
__construct([bool $success = false ]) : mixed
Parameters
- $success : bool = false
checkExtension()
public
checkExtension(string $extension) : bool
Parameters
- $extension : string
Return values
boolcheckGdFeature()
Wraps the most relevant features reported by gd_info()
public
checkGdFeature(string $feature) : bool
Parameters
- $feature : string
-
either
FreeType
,GIF Read
,GIF Create
,JPEG
,PNG
,WBMP
,XPM
,XBM
,WebP
,BMP
,TGA Read
orAVIF
.
Return values
boolcheckGdFreetype()
public
checkGdFreetype() : bool
Return values
boolcheckGdPng()
public
checkGdPng() : bool
Return values
boolcheckPlugin()
public
checkPlugin(string $plugin[, string|null $version = null ]) : bool
Parameters
- $plugin : string
- $version : string|null = null
Return values
boolcheckVersion()
public
checkVersion(string $actual, string $minimum) : bool
Parameters
- $actual : string
- $minimum : string
Return values
boolcheckWritability()
public
checkWritability(string $path) : bool
Parameters
- $path : string