Browse files

test empty metadata cookie

  • Loading branch information...
1 parent 649f878 commit 7b7dd97149169b36fcfddd4cb6fa2ab866e7d838 @daaku daaku committed Jul 16, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/tests.php
View
9 tests/tests.php
@@ -332,6 +332,15 @@ public function testMissingMetadataCookie() {
$this->assertEmpty($fb->publicGetMetadataCookie());
}
+ public function testEmptyMetadataCookie() {
+ $fb = new FBMetadataCookie(array(
+ 'appId' => self::APP_ID,
+ 'secret' => self::SECRET,
+ ));
+ $_COOKIE[$fb->publicGetMetadataCookieName()] = '';
+ $this->assertEmpty($fb->publicGetMetadataCookie());
+ }
+
public function testMetadataCookie() {
$fb = new FBMetadataCookie(array(
'appId' => self::APP_ID,

0 comments on commit 7b7dd97

Please sign in to comment.