We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7dd97 commit 420c008Copy full SHA for 420c008
tests/tests.php
@@ -352,6 +352,17 @@ public function testMetadataCookie() {
352
$this->assertEquals(array($key => $val), $fb->publicGetMetadataCookie());
353
}
354
355
+ public function testQuotedMetadataCookie() {
356
+ $fb = new FBMetadataCookie(array(
357
+ 'appId' => self::APP_ID,
358
+ 'secret' => self::SECRET,
359
+ ));
360
+ $key = 'foo';
361
+ $val = '42';
362
+ $_COOKIE[$fb->publicGetMetadataCookieName()] = "\"$key=$val\"";
363
+ $this->assertEquals(array($key => $val), $fb->publicGetMetadataCookie());
364
+ }
365
+
366
public function testAPIForLoggedOutUsers() {
367
$facebook = new TransientFacebook(array(
368
'appId' => self::APP_ID,
0 commit comments