Happyr\LinkedIn\LinkedInTest::testGetErrorWithMissingDescription PHP Method

testGetErrorWithMissingDescription() public method

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