TestDoubleBuilder
abstract class TestDoubleBuilder (View source)
Properties
| protected class-string|trait-string | $type | ||
| protected list<non-empty-string> | $methods | ||
| protected bool | $emptyMethodsArray | ||
| protected array | $constructorArgs | ||
| protected bool | $originalConstructor | ||
| protected bool | $originalClone | ||
| protected bool | $returnValueGeneration |
Methods
No description
Specifies the subset of methods to mock, requiring each to exist in the class.
Specifies the arguments for the constructor.
Disables the invocation of the original constructor.
Enables the invocation of the original constructor.
Disables the invocation of the original clone constructor.
Enables the invocation of the original clone constructor.
No description
No description
No description
Details
__construct(string $type)
No description
TestDoubleBuilder
onlyMethods(array $methods)
Specifies the subset of methods to mock, requiring each to exist in the class.
TestDoubleBuilder
setConstructorArgs(array $arguments)
Specifies the arguments for the constructor.
TestDoubleBuilder
disableOriginalConstructor()
Disables the invocation of the original constructor.
TestDoubleBuilder
enableOriginalConstructor()
Enables the invocation of the original constructor.
TestDoubleBuilder
disableOriginalClone()
Disables the invocation of the original clone constructor.
TestDoubleBuilder
enableOriginalClone()
Enables the invocation of the original clone constructor.
TestDoubleBuilder
enableAutoReturnValueGeneration()
No description
TestDoubleBuilder
disableAutoReturnValueGeneration()
No description
protected MockObject|Stub
getTestDouble(string|null $testDoubleClassName, bool $mockObject)
No description