|
file-fetcher
|
Public Member Functions | |
| getMock ($type, $methods=[], array $arguments=[], string $mockClassName='', bool $callOriginalConstructor=true, bool $callOriginalClone=true, bool $callAutoload=true, bool $cloneArguments=true, bool $callOriginalMethods=false, object $proxyTarget=null, bool $allowMockingUnknownTypes=true, bool $returnValueGeneration=true) | |
| getMockForAbstractClass (string $originalClassName, array $arguments=[], string $mockClassName='', bool $callOriginalConstructor=true, bool $callOriginalClone=true, bool $callAutoload=true, array $mockedMethods=null, bool $cloneArguments=true) | |
| getMockForTrait (string $traitName, array $arguments=[], string $mockClassName='', bool $callOriginalConstructor=true, bool $callOriginalClone=true, bool $callAutoload=true, array $mockedMethods=null, bool $cloneArguments=true) | |
| getObjectForTrait (string $traitName, string $traitClassName='', bool $callAutoload=true, bool $callOriginalConstructor=false, array $arguments=[]) | |
| generate ($type, array $methods=null, string $mockClassName='', bool $callOriginalClone=true, bool $callAutoload=true, bool $cloneArguments=true, bool $callOriginalMethods=false) | |
| generateClassFromWsdl (string $wsdlFile, string $className, array $methods=[], array $options=[]) | |
| getClassMethods (string $className) | |
| mockClassMethods (string $className, bool $callOriginalMethods, bool $cloneArguments) | |
| mockInterfaceMethods (string $interfaceName, bool $cloneArguments) | |
| PHPUnit\Framework\MockObject\Generator::generate | ( | $type, | |
| array | $methods = null, |
||
| string | $mockClassName = '', |
||
| bool | $callOriginalClone = true, |
||
| bool | $callAutoload = true, |
||
| bool | $cloneArguments = true, |
||
| bool | $callOriginalMethods = false |
||
| ) |
| PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl | ( | string | $wsdlFile, |
| string | $className, | ||
| array | $methods = [], |
||
| array | $options = [] |
||
| ) |
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::getClassMethods | ( | string | $className | ) |
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::getMock | ( | $type, | |
$methods = [], |
|||
| array | $arguments = [], |
||
| string | $mockClassName = '', |
||
| bool | $callOriginalConstructor = true, |
||
| bool | $callOriginalClone = true, |
||
| bool | $callAutoload = true, |
||
| bool | $cloneArguments = true, |
||
| bool | $callOriginalMethods = false, |
||
| object | $proxyTarget = null, |
||
| bool | $allowMockingUnknownTypes = true, |
||
| bool | $returnValueGeneration = true |
||
| ) |
Returns a mock object for the specified class.
| string | string[] | $type | |
| null | array | $methods |
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::getMockForAbstractClass | ( | string | $originalClassName, |
| array | $arguments = [], |
||
| string | $mockClassName = '', |
||
| bool | $callOriginalConstructor = true, |
||
| bool | $callOriginalClone = true, |
||
| bool | $callAutoload = true, |
||
| array | $mockedMethods = null, |
||
| bool | $cloneArguments = true |
||
| ) |
Returns a mock object for the specified abstract class with all abstract methods of the class mocked. Concrete methods to mock can be specified with the $mockedMethods parameter
@psalm-template RealInstanceType of object @psalm-param class-string<RealInstanceType> $originalClassName @psalm-return MockObject&RealInstanceType
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::getMockForTrait | ( | string | $traitName, |
| array | $arguments = [], |
||
| string | $mockClassName = '', |
||
| bool | $callOriginalConstructor = true, |
||
| bool | $callOriginalClone = true, |
||
| bool | $callAutoload = true, |
||
| array | $mockedMethods = null, |
||
| bool | $cloneArguments = true |
||
| ) |
Returns a mock object for the specified trait with all abstract methods of the trait mocked. Concrete methods to mock can be specified with the $mockedMethods parameter.
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::getObjectForTrait | ( | string | $traitName, |
| string | $traitClassName = '', |
||
| bool | $callAutoload = true, |
||
| bool | $callOriginalConstructor = false, |
||
| array | $arguments = [] |
||
| ) |
Returns an object for the specified trait.
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::mockClassMethods | ( | string | $className, |
| bool | $callOriginalMethods, | ||
| bool | $cloneArguments | ||
| ) |
| RuntimeException |
| PHPUnit\Framework\MockObject\Generator::mockInterfaceMethods | ( | string | $interfaceName, |
| bool | $cloneArguments | ||
| ) |
| RuntimeException |
1.8.17