Eloquent\Phony\Stub\Stub::forwards PHP Метод

forwards() публичный Метод

Add an answer that calls the wrapped callback.
public forwards ( Arguments | array $arguments = [], boolean | null $prefixSelf = null, boolean $suffixArgumentsObject = false, boolean $suffixArguments = true )
$arguments Eloquent\Phony\Call\Arguments | array The arguments.
$prefixSelf boolean | null True if the self value should be prefixed.
$suffixArgumentsObject boolean True if the arguments object should be appended.
$suffixArguments boolean True if the arguments should be appended individually.
    public function forwards($arguments = array(), $prefixSelf = null, $suffixArgumentsObject = false, $suffixArguments = true);

Usage Example

Пример #1
0
 /**
  * Creates a "forwards" answer on the supplied stub.
  *
  * @param Stub $stub The stub.
  */
 public static function forwardsAnswerCallback(Stub $stub)
 {
     $stub->forwards();
 }