/** * @expectedException \Facebook\Exceptions\FacebookResponseException */ public function testStartWillLetErrorResponsesThrow() { $this->graphApi->failOnStart(); $uploader = new FacebookResumableUploader($this->fbApp, $this->client, 'access_token', 'v2.4'); $chunk = $uploader->start('/me/videos', $this->file); }