call() public method

This method is called from the namespaced function.
public call ( array $arguments ) : mixed
$arguments array the call arguments.
return mixed
示例#1
0
文件: Spy.php 项目: php-mock/php-mock
 public function call(array $arguments)
 {
     $return = null;
     $exception = null;
     try {
         $return = parent::call($arguments);
         return $return;
     } catch (\Exception $e) {
         $exception = $e;
         throw $e;
     } finally {
         $this->invocations[] = new Invocation($arguments, $return, $exception);
     }
 }
示例#2
-1
文件: Spy.php 项目: OndraM/php-mock
 public function call(array $arguments)
 {
     $return = parent::call($arguments);
     $this->invocations[] = new Invocation($arguments, $return);
     return $return;
 }