public function testGetUserInfo()
{
try {
$this->configParams['region'] = '';
$client = new Client($this->configParams);
$client->getUserInfo('Atza');
} catch (\Exception $expected) {
$this->assertRegExp('/is a required parameter./i', strval($expected));
}
try {
$this->configParams['region'] = 'us';
$client = new Client($this->configParams);
$client->getUserInfo(null);
} catch (\Exception $expected) {
$this->assertRegExp('/Access Token is a required parameter and is not set./i', strval($expected));
}
}