/** * @expectedException \Facebook\Exceptions\FacebookResponseException */ public function testMaxingOutRetriesWillThrow() { $client = new FakeGraphApiForResumableUpload(); $client->failOnTransfer(); $config = array_merge($this->config, ['http_client_handler' => $client]); $fb = new Facebook($config); $response = $fb->uploadVideo('4', __DIR__ . '/foo.txt', [], 'foo-token', 3); }