コード例 #1
0
ファイル: tests.php プロジェクト: khk0613/YHK
 protected function getPersistentData($key, $default = false)
 {
     if ($key === 'state') {
         return self::STATE;
     }
     return parent::getPersistentData($key, $default);
 }
コード例 #2
0
ファイル: tests.php プロジェクト: nishant1000/php-sdk
  public function testBundledCACert() {
    $facebook = new TransientFacebook(array(
      'appId'  => self::APP_ID,
      'secret' => self::SECRET
    ));

      // use the bundled cert from the start
    Facebook::$CURL_OPTS[CURLOPT_CAINFO] =
      dirname(__FILE__) . '/../src/fb_ca_chain_bundle.crt';
    $response = $facebook->api('/naitik');

    unset(Facebook::$CURL_OPTS[CURLOPT_CAINFO]);
    $this->assertEquals(
      $response['id'], '5526183', 'should get expected id.');
  }