コード例 #1
0
 public function test_set_credentials()
 {
     $parser = new BasicAuthParser();
     $headers = new HttpHeaders();
     $parser->setCredentials($headers, 'foo', 'bar');
     $this->assertEquals(['foo', 'bar'], $parser->getCredentials($headers));
 }