Documentation

Platform
in package

Platform helper for uniform platform-specific tests.

Tags
author

Niels Keurentjes niels.keurentjes@omines.com

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
throws
RuntimeException

If the user home could not reliably be determined

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

Search results