|
Lggr
|
Public Member Functions | |
| __construct (TestCase $testCase, $type) | |
| getMock () | |
| getMockForAbstractClass () | |
| getMockForTrait () | |
| setMethods (array $methods=null) | |
| setMethodsExcept (array $methods=[]) | |
| setConstructorArgs (array $args) | |
| setMockClassName ($name) | |
| disableOriginalConstructor () | |
| enableOriginalConstructor () | |
| disableOriginalClone () | |
| enableOriginalClone () | |
| disableAutoload () | |
| enableAutoload () | |
| disableArgumentCloning () | |
| enableArgumentCloning () | |
| enableProxyingToOriginalMethods () | |
| disableProxyingToOriginalMethods () | |
| setProxyTarget ($object) | |
| allowMockingUnknownTypes () | |
| disallowMockingUnknownTypes () | |
Implementation of the Builder pattern for Mock objects.
| PHPUnit\Framework\MockObject\MockBuilder::__construct | ( | TestCase | $testCase, |
| $type | |||
| ) |
| TestCase | $testCase | |
| array | string | $type |
| 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::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::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.
| 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::setConstructorArgs | ( | array | $args | ) |
| PHPUnit\Framework\MockObject\MockBuilder::setMethods | ( | array | $methods = null | ) |
Specifies the subset of methods to mock. Default is to mock none of them.
| array | null | $methods |
| PHPUnit\Framework\MockObject\MockBuilder::setMethodsExcept | ( | array | $methods = [] | ) |
Specifies the subset of methods to not mock. Default is to mock all of them.
| array | $methods |
| PHPUnit\Framework\MockObject\MockBuilder::setMockClassName | ( | $name | ) |
| PHPUnit\Framework\MockObject\MockBuilder::setProxyTarget | ( | $object | ) |
1.8.17