Permalink
Browse files

- Merge [3433].

  • Loading branch information...
1 parent edbe33e commit 69cfb063d560c28df55b7b1ae883eb54788fdb3e @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 69cfb06

Please sign in to comment.