List of all members.
Protected Member Functions |
| getAccessibleMock ($originalClassName, array $methods=array(), array $arguments=array(), $mockClassName= '', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE) |
| buildAccessibleProxy ($className) |
Protected Attributes |
| $backupGlobals = FALSE |
| $backupStaticAttributes = FALSE |
Member Function Documentation
Creates a proxy class of the specified class which allows for calling even protected methods and access of protected properties.
- Parameters:
-
string | $className | name of class to make available, must not be empty |
- Returns:
- string full qualified name of the built class, will not be empty
- See also:
- Tx_Extbase_Tests_Unit_BaseTestCase::buildAccessibleProxy
Tx_Phpunit_TestCase::getAccessibleMock |
( |
$ |
originalClassName, |
|
|
array $ |
methods = array() , |
|
|
array $ |
arguments = array() , |
|
|
$ |
mockClassName = '' , |
|
|
$ |
callOriginalConstructor = TRUE , |
|
|
$ |
callOriginalClone = TRUE , |
|
|
$ |
callAutoload = TRUE |
|
) |
| [protected] |
Creates a mock object which allows for calling protected methods and access of protected properties.
- Parameters:
-
string | $originalClassName | name of class to create the mock object of, must not be empty |
| array<string> | $methods name of the methods to mock |
array | $arguments | arguments to pass to constructor |
string | $mockClassName | the class name to use for the mock class |
boolean | $callOriginalConstructor | whether to call the constructor |
boolean | $callOriginalClone | whether to call the __clone method |
boolean | $callAutoload | whether to call any autoload function |
- Returns:
- PHPUnit_Framework_MockObject_MockObject|Tx_Phpunit_Interface_AccessibleObject a mock of $originalClassName with access methods added
- See also:
- Tx_Extbase_Tests_Unit_BaseTestCase::getAccessibleMock
The documentation for this class was generated from the following file: