Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix interceptor not decorating returned value of intercepted magic call

  • Loading branch information...
commit 54e2c1f10a64c454798289567ef49f6cc775b91d 1 parent d3d48a2
@MarcelloDuarte MarcelloDuarte authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/PHPSpec/Specification/Interceptor.php
View
4 src/PHPSpec/Specification/Interceptor.php
@@ -308,9 +308,9 @@ protected function interceptedHasAMagicCall()
protected function invokeInterceptedMagicCall($method, $args)
{
$intercepted = new \ReflectionMethod($this->_actualValue, '__call');
- return $intercepted->invokeArgs(
+ return InterceptorFactory::create($intercepted->invokeArgs(
$this->_actualValue, array($method, $args)
- );
+ ));
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.