public function testGetError()
{
$linkedIn = new LinkedIn(self::APP_ID, self::APP_SECRET);
unset($_GET['error']);
unset($_GET['error_description']);
$this->assertNull($linkedIn->getError());
$_GET['error'] = 'foo';
$_GET['error_description'] = 'bar';
$this->assertEquals('foo', $linkedIn->getError()->getName());
$this->assertEquals('bar', $linkedIn->getError()->getDescription());
}