Method | Description | |
---|---|---|
__construct ( |
Cosntruct a new mock factory. | |
createFullMock ( ReflectionClass $class ) : Mock | Create a new full mock instance for the supplied class. | |
createMockClass ( |
Create the mock class for the supplied definition. | |
createPartialMock ( ReflectionClass $class, |
Create a new partial mock instance for the supplied definition. | |
instance ( ) : |
Get the static instance of this factory. |
public __construct ( |
||
$labelSequencer | The label sequencer to use. | |
$generator | The generator to use. | |
$handleFactory | The handle factory to use. | |
$featureDetector | The feature detector to use. |
public createFullMock ( ReflectionClass $class ) : Mock | ||
$class | ReflectionClass | The class. |
return | Mock | The newly created mock. |
public createMockClass ( |
||
$definition | The definition. | |
$createNew | boolean | True if a new class should be created even when a compatible one exists. |
return | ReflectionClass | The class. |
public createPartialMock ( ReflectionClass $class, |
||
$class | ReflectionClass | The class. |
$arguments | The constructor arguments, or null to bypass the constructor. | |
return | Mock | The newly created mock. |
public static instance ( ) : |
||
return | The static factory. |