Goutte\Client::resetAuth PHP Method

resetAuth() public method

public resetAuth ( )
    public function resetAuth()
    {
        $this->auth = null;
        return $this;
    }

Usage Example

Example #1
0
 public function testResetsAuth()
 {
     $guzzle = $this->getGuzzle();
     $client = new Client();
     $client->setClient($guzzle);
     $client->setAuth('me', '**');
     $client->resetAuth();
     $crawler = $client->request('GET', 'http://www.example.com/');
     $request = $this->history->getLastRequest();
     $this->assertNull($request->getConfig()->get('auth')[0]);
     $this->assertNull($request->getConfig()->get('auth')[1]);
 }
All Usage Examples Of Goutte\Client::resetAuth