Class Expectation
- Mockery\Expectation implements Mockery\ExpectationInterface
Direct known subclasses
Mockery\VerificationExpectation
public
|
|
public
string
|
#
__toString( string $name,…, array $args,… )
Return a string with the method name and arguments formatted |
public
mixed
|
#
verifyCall( array $args )
Verify the current call, i.e. that the given arguments match those of this expectation |
protected
mixed
|
|
protected
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
protected
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
andReturnUsing( )
Set a closure or sequence of closures with which to generate return values. The arguments passed to the expected method are passed to the closures as parameters. |
public
|
|
public
|
|
public
|
#
andThrow( string $exception, string $message = '', integer $code = 0,
Set Exception class and arguments to that class to be thrown |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
integer
|
#
_defineOrdered( string $group, object $ordering )
Setup the ordering tracking on the mock or mock container |
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
protected
object
|
$_mock
Mock object to which this expectation belongs |
#
null
|
protected
string
|
$_name
Method name |
#
null
|
protected
array
|
$_expectedArgs
Arguments expected by this expectation |
#
array()
|
protected
array
|
$_countValidators
Count validator store |
#
array()
|
protected
string
|
$_countValidatorClass
The count validator class to use |
#
'Mockery\CountValidator\Exact'
|
protected
integer
|
$_actualCount
Actual count of calls to this expectation |
#
0
|
protected
mixed
|
$_returnValue
Value to return from this expectation |
#
null
|
protected
array
|
$_returnQueue
Array of return values as a queue for multiple return sequence |
#
array()
|
protected
array
|
$_closureQueue
Array of closures executed with given arguments to generate a result to be returned |
#
array()
|
protected
array
|
$_setQueue
Array of values to be set when this expectation matches |
#
array()
|
protected
integer
|
$_orderNumber
Integer representing the call order of this expectation |
#
null
|
protected
integer
|
$_globalOrderNumber
Integer representing the call order of this expectation on a global basis |
#
null
|
protected
boolean
|
$_throw
Flag indicating that an exception is expected to be throw (not returned) |
#
false
|
protected
boolean
|
$_globally
Flag indicating whether the order of calling is determined locally or globally |
#
false
|
protected
boolean
|
$_noArgsExpectation
Flag indicating we expect no arguments |
#
false
|
protected
boolean
|
$_passthru
Flag indicating if the return value should be obtained from the original class method instead of returning predefined values from the return queue |
#
false
|