예제 #1
0
 /**
  * @covers ByJG\Util\WebRequest::setCredentials
  */
 public function testSetCredentials()
 {
     $this->object->setCredentials('user', 'pass');
     $this->assertEquals(CURLAUTH_BASIC, $this->object->getCurlOption(CURLOPT_HTTPAUTH));
     $this->assertEquals('user:pass', $this->object->getCurlOption(CURLOPT_USERPWD));
 }