상속: extends AdsUser
 /**
  * Tests loading SSL settings.
  * @covers AdsUser::LoadSettings
  */
 public function testLoadSettings_Ssl()
 {
     $verifyPeer = 1;
     $verifyHost = 1;
     $caPath = '/etc/ssl/certs';
     $caFile = '/etc/ssl/cafile';
     $settings = array('SSL' => array('VERIFY_PEER' => $verifyPeer, 'VERIFY_HOST' => $verifyHost, 'CA_PATH' => $caPath, 'CA_FILE' => $caFile));
     $settingsFilePath = $this->createTempSettingsFile($settings);
     $user = new TestAdsUser();
     $user->LoadSettings($settingsFilePath, self::DEFAULT_VERSION, self::DEFAULT_SERVER, self::DEFAULT_LOGS_DIR, $this->logsRelativePathBase);
     $this->assertEquals($verifyPeer, SSL_VERIFY_PEER);
     $this->assertEquals($verifyHost, SSL_VERIFY_HOST);
     $this->assertEquals($caPath, SSL_CA_PATH);
     $this->assertEquals($caFile, SSL_CA_FILE);
 }
 /**
  * Tests that the user agent header is properly set for this client library.
  * @covers AdsUser::GetClientLibraryUserAgent
  */
 public function testGetClientLibraryUserAgent()
 {
     $user = new TestAdsUser();
     $this->assertEquals('GoogleTestPhp (DfpApi-PHP/2.13.0, php/' . PHP_VERSION . ')', $user->GetClientLibraryUserAgent());
 }