public returnsByValueAt ( integer $timing, string $method, mixed $value, array $args = false ) | ||
$timing | integer | Number of calls in the future to which the result applies. If not set then all calls will return the value. |
$method | string | Method name. |
$value | mixed | Result of call passed by value. |
$args | array | List of parameters to match including wildcards. |
public function returnsByValueAt($timing, $method, $value, $args = false)
{
$this->dieOnNoMethod($method, 'set return value sequence');
$this->actions->registerAt($timing, $method, $args, new SimpleByValue($value));
}