Documentation

PHPUnit_Framework_MockObject_MockBuilder
in package

Implementation of the Builder pattern for Mock objects.

Tags
since

File available since Release 1.0.0

Table of Contents

$autoload  : bool
$callOriginalMethods  : bool
$cloneArguments  : bool
$constructorArgs  : array<string|int, mixed>
$methods  : array<string|int, mixed>
$mockClassName  : string
$originalClone  : bool
$originalConstructor  : bool
$proxyTarget  : object
$testCase  : PHPUnit_Framework_TestCase
$type  : string
__construct()  : mixed
disableArgumentCloning()  : PHPUnit_Framework_MockObject_MockBuilder
Disables the cloning of arguments passed to mocked methods.
disableAutoload()  : PHPUnit_Framework_MockObject_MockBuilder
Disables the use of class autoloading while creating the mock object.
disableOriginalClone()  : PHPUnit_Framework_MockObject_MockBuilder
Disables the invocation of the original clone constructor.
disableOriginalConstructor()  : PHPUnit_Framework_MockObject_MockBuilder
Disables the invocation of the original constructor.
disableProxyingToOriginalMethods()  : PHPUnit_Framework_MockObject_MockBuilder
Disables the invocation of the original methods.
enableArgumentCloning()  : PHPUnit_Framework_MockObject_MockBuilder
Enables the cloning of arguments passed to mocked methods.
enableAutoload()  : PHPUnit_Framework_MockObject_MockBuilder
Enables the use of class autoloading while creating the mock object.
enableOriginalClone()  : PHPUnit_Framework_MockObject_MockBuilder
Enables the invocation of the original clone constructor.
enableOriginalConstructor()  : PHPUnit_Framework_MockObject_MockBuilder
Enables the invocation of the original constructor.
enableProxyingToOriginalMethods()  : PHPUnit_Framework_MockObject_MockBuilder
Enables the invocation of the original methods.
getMock()  : PHPUnit_Framework_MockObject_MockObject
Creates a mock object using a fluent interface.
getMockForAbstractClass()  : PHPUnit_Framework_MockObject_MockObject
Creates a mock object for an abstract class using a fluent interface.
getMockForTrait()  : PHPUnit_Framework_MockObject_MockObject
Creates a mock object for a trait using a fluent interface.
setConstructorArgs()  : PHPUnit_Framework_MockObject_MockBuilder
Specifies the arguments for the constructor.
setMethods()  : PHPUnit_Framework_MockObject_MockBuilder
Specifies the subset of methods to mock. Default is to mock all of them.
setMockClassName()  : PHPUnit_Framework_MockObject_MockBuilder
Specifies the name for the mock class.
setProxyTarget()  : PHPUnit_Framework_MockObject_MockBuilder
Sets the proxy target.

Properties

$callOriginalMethods

private bool $callOriginalMethods = alse

$constructorArgs

private array<string|int, mixed> $constructorArgs = array()

$methods

private array<string|int, mixed> $methods = array()

$originalConstructor

private bool $originalConstructor = rue

Methods

Search results