call() 공개 메소드

This method is called from the namespaced function.
public call ( array $arguments ) : mixed
$arguments array the call arguments.
리턴 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;
 }