|
file-fetcher
|
@psalm-template MockedType
Public Member Functions | |
| __construct (TestCase $testCase, $type) | |
| getMock () | |
| getMockForAbstractClass () | |
| getMockForTrait () | |
| setMethods (?array $methods=null) | |
| onlyMethods (array $methods) | |
| addMethods (array $methods) | |
| setMethodsExcept (array $methods=[]) | |
| setConstructorArgs (array $args) | |
| setMockClassName (string $name) | |
| disableOriginalConstructor () | |
| enableOriginalConstructor () | |
| disableOriginalClone () | |
| enableOriginalClone () | |
| disableAutoload () | |
| enableAutoload () | |
| disableArgumentCloning () | |
| enableArgumentCloning () | |
| enableProxyingToOriginalMethods () | |
| disableProxyingToOriginalMethods () | |
| setProxyTarget (object $object) | |
| allowMockingUnknownTypes () | |
| disallowMockingUnknownTypes () | |
| enableAutoReturnValueGeneration () | |
| disableAutoReturnValueGeneration () | |
| PHPUnit\Framework\MockObject\MockBuilder::__construct | ( | TestCase | $testCase, |
| $type | |||
| ) |
| string | string[] | $type | @psalm-param class-string<MockedType>|string|string[] $type |
| PHPUnit\Framework\MockObject\MockBuilder::addMethods | ( | array | $methods | ) |
Specifies methods that don't exist in the class which you want to mock
| string[] | $methods |
| RuntimeException |
| PHPUnit\Framework\MockObject\MockBuilder::allowMockingUnknownTypes | ( | ) |
| PHPUnit\Framework\MockObject\MockBuilder::disableArgumentCloning | ( | ) |
Disables the cloning of arguments passed to mocked methods.
| PHPUnit\Framework\MockObject\MockBuilder::disableAutoload | ( | ) |
Disables the use of class autoloading while creating the mock object.
| PHPUnit\Framework\MockObject\MockBuilder::disableAutoReturnValueGeneration | ( | ) |
| PHPUnit\Framework\MockObject\MockBuilder::disableOriginalClone | ( | ) |
Disables the invocation of the original clone constructor.
| PHPUnit\Framework\MockObject\MockBuilder::disableOriginalConstructor | ( | ) |
Disables the invocation of the original constructor.
| PHPUnit\Framework\MockObject\MockBuilder::disableProxyingToOriginalMethods | ( | ) |
Disables the invocation of the original methods.
| PHPUnit\Framework\MockObject\MockBuilder::disallowMockingUnknownTypes | ( | ) |
| PHPUnit\Framework\MockObject\MockBuilder::enableArgumentCloning | ( | ) |
Enables the cloning of arguments passed to mocked methods.
| PHPUnit\Framework\MockObject\MockBuilder::enableAutoload | ( | ) |
Enables the use of class autoloading while creating the mock object.
| PHPUnit\Framework\MockObject\MockBuilder::enableAutoReturnValueGeneration | ( | ) |
| PHPUnit\Framework\MockObject\MockBuilder::enableOriginalClone | ( | ) |
Enables the invocation of the original clone constructor.
| PHPUnit\Framework\MockObject\MockBuilder::enableOriginalConstructor | ( | ) |
Enables the invocation of the original constructor.
| PHPUnit\Framework\MockObject\MockBuilder::enableProxyingToOriginalMethods | ( | ) |
Enables the invocation of the original methods.
| PHPUnit\Framework\MockObject\MockBuilder::getMock | ( | ) |
Creates a mock object using a fluent interface.
| RuntimeException | @psalm-return MockObject&MockedType |
| PHPUnit\Framework\MockObject\MockBuilder::getMockForAbstractClass | ( | ) |
Creates a mock object for an abstract class using a fluent interface.
| PHPUnit\Framework\MockObject\MockBuilder::getMockForTrait | ( | ) |
Creates a mock object for a trait using a fluent interface.
| PHPUnit\Framework\MockObject\MockBuilder::onlyMethods | ( | array | $methods | ) |
Specifies the subset of methods to mock, requiring each to exist in the class
| string[] | $methods |
| RuntimeException |
| PHPUnit\Framework\MockObject\MockBuilder::setConstructorArgs | ( | array | $args | ) |
Specifies the arguments for the constructor.
| PHPUnit\Framework\MockObject\MockBuilder::setMethods | ( | ?array | $methods = null | ) |
Specifies the subset of methods to mock. Default is to mock none of them.
| PHPUnit\Framework\MockObject\MockBuilder::setMethodsExcept | ( | array | $methods = [] | ) |
Specifies the subset of methods to not mock. Default is to mock all of them.
| PHPUnit\Framework\MockObject\MockBuilder::setMockClassName | ( | string | $name | ) |
Specifies the name for the mock class.
| PHPUnit\Framework\MockObject\MockBuilder::setProxyTarget | ( | object | $object | ) |
Sets the proxy target.
1.8.17