Permalink
Browse files

Fix interceptor not decorating returned value of intercepted magic call

  • Loading branch information...
1 parent d3d48a2 commit 54e2c1f10a64c454798289567ef49f6cc775b91d @MarcelloDuarte MarcelloDuarte committed Sep 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)
- );
+ ));
}
/**

0 comments on commit 54e2c1f

Please sign in to comment.