'foo']; } protected function mapUserToObject(array $user) { return (new User())->map(['id' => $user['id']]); } protected function getHttpClient() { if ($this->http) { return $this->http; } return $this->http = m::mock(stdClass::class); } }