Permalink
Browse files

Merge [3433].

  • Loading branch information...
1 parent 95aecb5 commit 8dd02b677e9d344251a6166d7b336461e7bfd54c @sebastianbergmann committed Jul 12, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
View
4 PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
@@ -72,8 +72,8 @@ public function __construct($argumentIndex)
public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
{
- if (isset($invocation->parameters[$this->argumentIndex - 1])) {
- return $invocation->parameters[$this->argumentIndex - 1];
+ if (isset($invocation->parameters[$this->argumentIndex])) {
+ return $invocation->parameters[$this->argumentIndex];
} else {
return NULL;
}

0 comments on commit 8dd02b6

Please sign in to comment.