public static function make(ReplacementRequest $request, Checker $checker, ReturnValue $returnValue, LoggerInterface $callLogger)
 {
     if ($request->isFunction()) {
         return FunctionCallVerifier::__from($checker, $returnValue, $callLogger);
     }
     if ($request->isStaticMethod()) {
         return StaticMethodCallVerifier::__from($checker, $returnValue, $callLogger);
     }
     return InstanceMethodCallVerifier::from($returnValue, $callLogger);
 }
Ejemplo n.º 2
0
 public function __call($name, array $args = null)
 {
     return InstanceMethodCallVerifier::from($this->returnValue, $this->callLogger);
 }