Generator
final class Generator (View source)
| internal | This class is not covered by the backward compatibility promise for PHPUnit |
Traits
Methods
testDouble(string $type, bool $mockObject, array|null $methods = [], array $arguments = [], string $mockClassName = '', bool $callOriginalConstructor = true, bool $callOriginalClone = true, bool $returnValueGeneration = true)
Returns a test double for the specified class.
testDoubleForInterfaceIntersection(array $interfaces, bool $mockObject, bool $returnValueGeneration = true)
No description
generate(string $type, bool $mockObject, array|null $methods = null, string $mockClassName = '', bool $callOriginalClone = true)
No description
Details
MockObject|Stub
testDouble(string $type, bool $mockObject, array|null $methods = [], array $arguments = [], string $mockClassName = '', bool $callOriginalConstructor = true, bool $callOriginalClone = true, bool $returnValueGeneration = true)
Returns a test double for the specified class.
MockObject|Stub
testDoubleForInterfaceIntersection(array $interfaces, bool $mockObject, bool $returnValueGeneration = true)
No description
DoubledClass
generate(string $type, bool $mockObject, array|null $methods = null, string $mockClassName = '', bool $callOriginalClone = true)
No description