class Tests

Template tests functions

Methods

static boolean
isObject(mixed $var)

Return true if var is object

static boolean
isString(mixed $var)

Return true if var is string

static bool
versionCompare(string|null $requiredVersion, string|null $currentVersion)

Compare version (if requiredVersion is > currentVersion retrun true)

Details

at line 25
static boolean isObject(mixed $var)

Return true if var is object

Parameters

mixed $var

Return Value

boolean

at line 36
static boolean isString(mixed $var)

Return true if var is string

Parameters

mixed $var

Return Value

boolean

at line 48
static bool versionCompare(string|null $requiredVersion, string|null $currentVersion)

Compare version (if requiredVersion is > currentVersion retrun true)

Parameters

string|null $requiredVersion
string|null $currentVersion

Return Value

bool