Happyr\LinkedIn\LinkedInTest::testHasError PHP Method

testHasError() public method

public testHasError ( )
    public function testHasError()
    {
        $linkedIn = new LinkedIn(self::APP_ID, self::APP_SECRET);
        unset($_GET['error']);
        $this->assertFalse($linkedIn->hasError());
        $_GET['error'] = 'foobar';
        $this->assertTrue($linkedIn->hasError());
    }