Skip to content

Commit

Permalink
Merge pull request #102 from blanchonvincent/hotfix/test-functional-n…
Browse files Browse the repository at this point in the history
…ull-object

Remove useless parameter
  • Loading branch information
Ocramius committed Oct 2, 2013
2 parents db19ea1 + d15bee3 commit ef07cbf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testMethodCalls($className, $instance, $method, $params, $expect
$proxyName = $this->generateProxy($className);

/* @var $proxy \ProxyManager\Proxy\NullObjectInterface */
$proxy = new $proxyName($instance);
$proxy = new $proxyName();

$this->assertSame(null, call_user_func_array(array($proxy, $method), $params));
}
Expand All @@ -56,7 +56,7 @@ public function testMethodCallsAfterUnSerialization($className, $instance, $meth
{
$proxyName = $this->generateProxy($className);
/* @var $proxy \ProxyManager\Proxy\NullObjectInterface */
$proxy = unserialize(serialize(new $proxyName($instance)));
$proxy = unserialize(serialize(new $proxyName()));

$this->assertSame(null, call_user_func_array(array($proxy, $method), $params));
}
Expand All @@ -69,7 +69,7 @@ public function testMethodCallsAfterCloning($className, $instance, $method, $par
$proxyName = $this->generateProxy($className);

/* @var $proxy \ProxyManager\Proxy\NullObjectInterface */
$proxy = new $proxyName($instance);
$proxy = new $proxyName();
$cloned = clone $proxy;

$this->assertSame(null, call_user_func_array(array($cloned, $method), $params));
Expand Down

0 comments on commit ef07cbf

Please sign in to comment.