Property | Type | Description | |
---|---|---|---|
$_allocatedOrder | integer | Order number of allocation | |
$_currentOrder | integer | Current ordered number | |
$_generator | Mockery\Generator\Generator\Generator | ||
$_groups | array | Ordered groups | |
$_loader | Mockery\Loader\Loader | ||
$_mocks | array | Store of mock objects | |
$_namedMocks | array |
Method | Description | |
---|---|---|
__construct ( Mockery\Generator\Generator $generator = null, Mockery\Loader\Loader $loader = null ) | ||
fetchMock ( $reference ) : |
Return a specific remembered mock according to the array index it was stored to in this container instance | |
getGenerator ( ) | ||
getKeyOfDemeterMockFor ( string $method ) : string | null | ||
getLoader ( ) | ||
getMocks ( ) : array | ||
instanceMock ( ) | ||
isValidClassName ( string $className ) : boolean | see http://php.net/manual/en/language.oop5.basic.php | |
mock ( ) : |
Generates a new mock object for this container | |
mockery_allocateOrder ( ) : integer | Fetch the next available allocation order number | |
mockery_close ( ) : void | Reset the container to its original state | |
mockery_getCurrentOrder ( ) : integer | Get current ordered number | |
mockery_getExpectationCount ( ) : integer | Gets the count of expectations on the mocks | |
mockery_getGroups ( ) : array | Fetch array of ordered groups | |
mockery_setCurrentOrder ( integer $order ) : integer | Set current ordered number | |
mockery_setGroup ( mixed $group, integer $order ) | Set ordering for a group | |
mockery_teardown ( ) : void | Tear down tasks for this container | |
mockery_validateOrder ( string $method, integer $order, Mockery\MockInterface $mock ) : void | Validate the current mock's ordering | |
mockery_verify ( ) : void | Verify the container mocks | |
rememberMock ( Mockery\MockInterface $mock ) : |
Store a mock and set its container reference | |
self ( ) : |
Retrieve the last remembered mock object, which is the same as saying retrieve the current mock being programmed where you have yet to call mock() to change it - thus why the method name is "self" since it will be be used during the programming of the same mock. |
Method | Description | |
---|---|---|
_getInstance ( $mockName, $constructorArgs = null ) | ||
checkForNamedMockClashes ( $config ) |
public __construct ( Mockery\Generator\Generator $generator = null, Mockery\Loader\Loader $loader = null ) | ||
$generator | Mockery\Generator\Generator | |
$loader | Mockery\Loader\Loader |
public fetchMock ( $reference ) : |
||
return |
public isValidClassName ( string $className ) : boolean | ||
$className | string | |
return | boolean |
public mock ( ) : |
||
return |
public mockery_allocateOrder ( ) : integer | ||
return | integer |
public mockery_close ( ) : void | ||
return | void |
public mockery_getCurrentOrder ( ) : integer | ||
return | integer |
public mockery_getExpectationCount ( ) : integer | ||
return | integer |
public mockery_getGroups ( ) : array | ||
return | array |
public mockery_setCurrentOrder ( integer $order ) : integer | ||
$order | integer | |
return | integer | The current order number that was set |
public mockery_setGroup ( mixed $group, integer $order ) | ||
$group | mixed | |
$order | integer |
public mockery_teardown ( ) : void | ||
return | void |
public mockery_verify ( ) : void | ||
return | void |
public rememberMock ( Mockery\MockInterface $mock ) : |
||
$mock | Mockery\MockInterface | |
return |
public self ( ) : |
||
return |
protected int $_allocatedOrder | ||
return | integer |
protected int $_currentOrder | ||
return | integer |
protected Generator,Mockery\Generator\Generator $_generator | ||
return | Mockery\Generator\Generator\Generator |
protected Loader,Mockery\Loader $_loader | ||
return | Mockery\Loader\Loader |