Class Configuration
public
|
#
allowMockingNonExistentMethods( boolean $flag = true )
Set boolean to allow/prevent mocking of non-existent methods |
public
boolean
|
#
mockingNonExistentMethodsAllowed( )
Return flag indicating whether mocking non-existent methods allowed |
public
|
#
allowMockingMethodsUnnecessarily( boolean $flag = true )
Set boolean to allow/prevent unnecessary mocking of methods |
public
boolean
|
#
mockingMethodsUnnecessarilyAllowed( )
Return flag indicating whether mocking non-existent methods allowed |
public
|
#
setInternalClassMethodParamMap( string $class, string $method, array $map )
Set a parameter map (array of param signature strings) for the method of an internal PHP class. |
public
|
#
resetInternalClassMethodParamMaps( )
Remove all overriden parameter maps from internal PHP classes. |
public
array
|
#
getInternalClassMethodParamMap( $class, $method )
Get the parameter map of an internal PHP class method |
public
|
protected
boolean
|
$_allowMockingNonExistentMethod
Boolean assertion of whether we can mock methods which do not actually exist for the given class or object (ignored for unreal mocks) |
#
true
|
protected
boolean
|
$_allowMockingMethodsUnnecessarily
Boolean assertion of whether we ignore unnecessary mocking of methods, i.e. when method expectations are made, set using a zeroOrMoreTimes() constraint, and then never called. Essentially such expectations are not required and are just taking up test space. |
#
true
|
protected
array
|
$_internalClassParamMap
Parameter map for use with PHP internal classes. |
#
array()
|