Skip to content

Commit

Permalink
Use original value in toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 6, 2019
1 parent 604f68b commit 4c62410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/MockObject/MethodNameConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class MethodNameConstraint extends Constraint

public function __construct(string $methodName)
{
$this->methodName = \strtolower($methodName);
$this->methodName = $methodName;
}

public function toString(): string
Expand All @@ -40,6 +40,6 @@ protected function matches($other): bool
return false;
}

return $this->methodName === \strtolower($other);
return \strtolower($this->methodName) === \strtolower($other);
}
}

0 comments on commit 4c62410

Please sign in to comment.