MockConfigurationBuilder
Table of Contents
-
$blackListedMethods
: mixed
-
$constantsMap
: mixed
-
$instanceMock
: mixed
-
$mockOriginalDestructor
: mixed
-
$name
: mixed
-
$parameterOverrides
: mixed
-
$php7SemiReservedKeywords
: mixed
-
$targets
: mixed
-
$whiteListedMethods
: mixed
-
__construct()
: mixed
-
addBlackListedMethod()
: mixed
-
addBlackListedMethods()
: mixed
-
addTarget()
: mixed
-
addTargets()
: mixed
-
addWhiteListedMethod()
: mixed
-
addWhiteListedMethods()
: mixed
-
getMockConfiguration()
: mixed
-
setBlackListedMethods()
: mixed
-
setConstantsMap()
: mixed
-
setInstanceMock()
: mixed
-
setMockOriginalDestructor()
: mixed
-
setName()
: mixed
-
setParameterOverrides()
: mixed
-
setWhiteListedMethods()
: mixed
$blackListedMethods
protected
mixed
$blackListedMethods
= array(
'__call',
'__callStatic',
'__clone',
'__wakeup',
'__set',
'__get',
'__toString',
'__isset',
'__destruct',
'__debugInfo',
## mocking this makes it difficult to debug with xdebug
// below are reserved words in PHP
"__halt_compiler",
"abstract",
"and",
"array",
"as",
"break",
"callable",
"case",
"catch",
"class",
"clone",
"const",
"continue",
"declare",
"default",
"die",
"do",
"echo",
"else",
"elseif",
"empty",
"enddeclare",
"endfor",
"endforeach",
"endif",
"endswitch",
"endwhile",
"eval",
"exit",
"extends",
"final",
"for",
"foreach",
"function",
"global",
"goto",
"if",
"implements",
"include",
"include_once",
"instanceof",
"insteadof",
"interface",
"isset",
"list",
"namespace",
"new",
"or",
"print",
"private",
"protected",
"public",
"require",
"require_once",
"return",
"static",
"switch",
"throw",
"trait",
"try",
"unset",
"use",
"var",
"while",
"xor",
)
$constantsMap
protected
mixed
$constantsMap
= array()
$instanceMock
protected
mixed
$instanceMock
= false
$mockOriginalDestructor
protected
mixed
$mockOriginalDestructor
= false
$name
protected
mixed
$name
$parameterOverrides
protected
mixed
$parameterOverrides
= array()
$php7SemiReservedKeywords
protected
mixed
$php7SemiReservedKeywords
= ["callable", "class", "trait", "extends", "implements", "static", "abstract", "final", "public", "protected", "private", "const", "enddeclare", "endfor", "endforeach", "endif", "endwhile", "and", "global", "goto", "instanceof", "insteadof", "interface", "namespace", "new", "or", "xor", "try", "use", "var", "exit", "list", "clone", "include", "include_once", "throw", "array", "print", "echo", "require", "require_once", "return", "else", "elseif", "default", "break", "continue", "switch", "yield", "function", "if", "endswitch", "finally", "for", "foreach", "declare", "case", "do", "while", "as", "catch", "die", "self", "parent"]
$targets
protected
mixed
$targets
= array()
$whiteListedMethods
protected
mixed
$whiteListedMethods
= array()
__construct()
public
__construct() : mixed
Return values
mixed
—
addBlackListedMethod()
public
addBlackListedMethod(mixed $blackListedMethod) : mixed
Parameters
-
$blackListedMethod
: mixed
-
Return values
mixed
—
addBlackListedMethods()
public
addBlackListedMethods(array<string|int, mixed> $blackListedMethods) : mixed
Parameters
-
$blackListedMethods
: array<string|int, mixed>
-
Return values
mixed
—
addTarget()
public
addTarget(mixed $target) : mixed
Parameters
-
$target
: mixed
-
Return values
mixed
—
addTargets()
public
addTargets(mixed $targets) : mixed
Parameters
-
$targets
: mixed
-
Return values
mixed
—
addWhiteListedMethod()
public
addWhiteListedMethod(mixed $whiteListedMethod) : mixed
Parameters
-
$whiteListedMethod
: mixed
-
Return values
mixed
—
addWhiteListedMethods()
public
addWhiteListedMethods(array<string|int, mixed> $whiteListedMethods) : mixed
Parameters
-
$whiteListedMethods
: array<string|int, mixed>
-
Return values
mixed
—
getMockConfiguration()
public
getMockConfiguration() : mixed
Return values
mixed
—
setBlackListedMethods()
public
setBlackListedMethods(array<string|int, mixed> $blackListedMethods) : mixed
Parameters
-
$blackListedMethods
: array<string|int, mixed>
-
Return values
mixed
—
setConstantsMap()
public
setConstantsMap(array<string|int, mixed> $map) : mixed
Parameters
-
$map
: array<string|int, mixed>
-
Return values
mixed
—
setInstanceMock()
public
setInstanceMock(mixed $instanceMock) : mixed
Parameters
-
$instanceMock
: mixed
-
Return values
mixed
—
setMockOriginalDestructor()
public
setMockOriginalDestructor(mixed $mockDestructor) : mixed
Parameters
-
$mockDestructor
: mixed
-
Return values
mixed
—
setName()
public
setName(mixed $name) : mixed
Parameters
-
$name
: mixed
-
Return values
mixed
—
setParameterOverrides()
public
setParameterOverrides(array<string|int, mixed> $overrides) : mixed
Parameters
-
$overrides
: array<string|int, mixed>
-
Return values
mixed
—
setWhiteListedMethods()
public
setWhiteListedMethods(array<string|int, mixed> $whiteListedMethods) : mixed
Parameters
-
$whiteListedMethods
: array<string|int, mixed>
-
Return values
mixed
—