class ClassExistsMock

Methods

static 
withMockedClasses(array $classes)

Configures the classes to be checked upon existence.

static 
class_exists($name, $autoload = true)

No description

static 
interface_exists($name, $autoload = true)

No description

static 
trait_exists($name, $autoload = true)

No description

static 
register($class)

No description

Details

at line 26
static withMockedClasses(array $classes)

Configures the classes to be checked upon existence.

Parameters

array $classes Mocked class names as keys (case sensitive, without leading root namespace slash) and booleans as values

at line 31
static class_exists($name, $autoload = true)

Parameters

$name
$autoload

at line 36
static interface_exists($name, $autoload = true)

Parameters

$name
$autoload

at line 41
static trait_exists($name, $autoload = true)

Parameters

$name
$autoload

at line 46
static register($class)

Parameters

$class