callCount >= count($this->tokens)) { throw new RuntimeException('FakeTokenGenerator exhausted'); } $token = $this->tokens[$this->callCount]; $this->callCount++; return $token; } }