Platform
in package
Platform helper for uniform platform-specific tests.
Tags
Table of Contents
- expandPath() : string
- Parses tildes and environment variables in paths.
- getUserDirectory() : string
- isWindows() : bool
- strlen() : int
Methods
expandPath()
Parses tildes and environment variables in paths.
public
static expandPath(string $path) : string
Parameters
- $path : string
Return values
string —getUserDirectory()
public
static getUserDirectory() : string
Tags
Return values
string —The formal user home as detected from environment parameters
isWindows()
public
static isWindows() : bool
Return values
bool —Whether the host machine is running a Windows OS
strlen()
public
static strlen(string $str) : int
Parameters
- $str : string
Return values
int —return a guaranteed binary length of the string, regardless of silly mbstring configs