public function testSetRedirectHandler()
 {
     $this->testFunction = false;
     $callback = function ($url) {
         $this->testFunction = $url;
     };
     $this->provider->setRedirectHandler($callback);
     $this->provider->authorize('http://test.url/');
     $this->assertNotFalse($this->testFunction);
 }