@@ -91,7 +91,7 @@ public function testInstantiatingWithoutAppIdThrows()
9191 $ config = [
9292 'app_secret ' => 'foo_secret ' ,
9393 ];
94- $ fb = new Facebook ($ config );
94+ new Facebook ($ config );
9595 }
9696
9797 /**
@@ -104,7 +104,7 @@ public function testInstantiatingWithoutAppSecretThrows()
104104 $ config = [
105105 'app_id ' => 'foo_id ' ,
106106 ];
107- $ fb = new Facebook ($ config );
107+ new Facebook ($ config );
108108 }
109109
110110 /**
@@ -115,7 +115,7 @@ public function testSettingAnInvalidHttpClientHandlerThrows()
115115 $ config = array_merge ($ this ->config , [
116116 'http_client_handler ' => 'foo_handler ' ,
117117 ]);
118- $ fb = new Facebook ($ config );
118+ new Facebook ($ config );
119119 }
120120
121121 public function testCurlHttpClientHandlerCanBeForced ()
@@ -165,7 +165,7 @@ public function testSettingAnInvalidPersistentDataHandlerThrows()
165165 $ config = array_merge ($ this ->config , [
166166 'persistent_data_handler ' => 'foo_handler ' ,
167167 ]);
168- $ fb = new Facebook ($ config );
168+ new Facebook ($ config );
169169 }
170170
171171 public function testPersistentDataHandlerCanBeForced ()
@@ -191,7 +191,7 @@ public function testSettingAnInvalidUrlHandlerThrows()
191191 $ config = array_merge ($ this ->config , [
192192 'url_detection_handler ' => 'foo_handler ' ,
193193 ]);
194- $ fb = new Facebook ($ config );
194+ new Facebook ($ config );
195195 }
196196
197197 public function testTheUrlHandlerWillDefaultToTheFacebookImplementation ()
@@ -302,7 +302,7 @@ public function testSettingAnAccessThatIsNotStringOrAccessTokenThrows()
302302 $ config = array_merge ($ this ->config , [
303303 'default_access_token ' => 123 ,
304304 ]);
305- $ fb = new Facebook ($ config );
305+ new Facebook ($ config );
306306 }
307307
308308 public function testCreatingANewRequestWillDefaultToTheProperConfig ()
@@ -413,6 +413,6 @@ public function testMaxingOutRetriesWillThrow()
413413 'http_client_handler ' => $ client ,
414414 ]);
415415 $ fb = new Facebook ($ config );
416- $ response = $ fb ->uploadVideo ('4 ' , __DIR__ .'/foo.txt ' , [], 'foo-token ' , 3 );
416+ $ fb ->uploadVideo ('4 ' , __DIR__ .'/foo.txt ' , [], 'foo-token ' , 3 );
417417 }
418418}
0 commit comments