Exemple #1
0
 public function test_get_and_set_basic_auth()
 {
     $request = new HttpRequest();
     $this->assertTrue($request->getBasicAuth() instanceof IHttpBasicAuth);
     $basicAuth = new HttpBasicAuth($request, 'foo', 'bar');
     $request->setBasicAuth($basicAuth);
     $this->assertTrue($basicAuth === $request->getBasicAuth());
 }