protected function getPersistentData($key, $default = false) { if ($key === 'state') { return self::STATE; } return parent::getPersistentData($key, $default); }
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.'); }