callCount++; return 'hash123'; } /** * @inheritDoc */ public function check($password, $hashedPassword) { if ($hashedPassword == null || $hashedPassword === '') { throw new InvalidArgumentException('Empty hash not expected'); } $this->callCount++; return false; } }