@@ -288,7 +288,7 @@ public function testGetUserFromSignedRequest() {
288288 }
289289
290290 public function testGetSignedRequestFromCookie () {
291- $ facebook = new FBGetSignedRequestCookieFacebook (array (
291+ $ facebook = new FBPublicCookie (array (
292292 'appId ' => self ::APP_ID ,
293293 'secret ' => self ::SECRET ,
294294 ));
@@ -301,7 +301,7 @@ public function testGetSignedRequestFromCookie() {
301301 }
302302
303303 public function testGetSignedRequestWithIncorrectSignature () {
304- $ facebook = new FBGetSignedRequestCookieFacebook (array (
304+ $ facebook = new FBPublicCookie (array (
305305 'appId ' => self ::APP_ID ,
306306 'secret ' => self ::SECRET ,
307307 ));
@@ -325,15 +325,15 @@ public function testNonUserAccessToken() {
325325 }
326326
327327 public function testMissingMetadataCookie () {
328- $ fb = new FBMetadataCookie (array (
328+ $ fb = new FBPublicCookie (array (
329329 'appId ' => self ::APP_ID ,
330330 'secret ' => self ::SECRET ,
331331 ));
332332 $ this ->assertEmpty ($ fb ->publicGetMetadataCookie ());
333333 }
334334
335335 public function testEmptyMetadataCookie () {
336- $ fb = new FBMetadataCookie (array (
336+ $ fb = new FBPublicCookie (array (
337337 'appId ' => self ::APP_ID ,
338338 'secret ' => self ::SECRET ,
339339 ));
@@ -342,7 +342,7 @@ public function testEmptyMetadataCookie() {
342342 }
343343
344344 public function testMetadataCookie () {
345- $ fb = new FBMetadataCookie (array (
345+ $ fb = new FBPublicCookie (array (
346346 'appId ' => self ::APP_ID ,
347347 'secret ' => self ::SECRET ,
348348 ));
@@ -353,7 +353,7 @@ public function testMetadataCookie() {
353353 }
354354
355355 public function testQuotedMetadataCookie () {
356- $ fb = new FBMetadataCookie (array (
356+ $ fb = new FBPublicCookie (array (
357357 'appId ' => self ::APP_ID ,
358358 'secret ' => self ::SECRET ,
359359 ));
@@ -1256,7 +1256,7 @@ public function testExceptionToString() {
12561256 }
12571257
12581258 public function testDestroyClearsCookie () {
1259- $ fb = new FBGetSignedRequestCookieFacebook (array (
1259+ $ fb = new FBPublicCookie (array (
12601260 'appId ' => self ::APP_ID ,
12611261 'secret ' => self ::SECRET ,
12621262 ));
@@ -1375,17 +1375,15 @@ public function publicGetCurrentUrl() {
13751375 }
13761376}
13771377
1378- class FBGetSignedRequestCookieFacebook extends TransientFacebook {
1378+ class FBPublicCookie extends TransientFacebook {
13791379 public function publicGetSignedRequest () {
13801380 return $ this ->getSignedRequest ();
13811381 }
13821382
13831383 public function publicGetSignedRequestCookieName () {
13841384 return $ this ->getSignedRequestCookieName ();
13851385 }
1386- }
13871386
1388- class FBMetadataCookie extends TransientFacebook {
13891387 public function publicGetMetadataCookie () {
13901388 return $ this ->getMetadataCookie ();
13911389 }
0 commit comments