2222 *
2323 */
2424
25- namespace Facebook \Tests \FakeGraphApi ;
25+ namespace Facebook \Tests \Fixtures ;
2626
2727use Facebook \Http \GraphRawResponse ;
2828use Facebook \HttpClients \FacebookHttpClientInterface ;
@@ -58,26 +58,26 @@ private function respondStart()
5858 {
5959 if ($ this ->respondWith == 'FAIL_ON_START ' ) {
6060 return new GraphRawResponse (
61- "HTTP/1.1 500 OK \r\nFoo: Bar " ,
62- '{"error":{"message":"Error validating access token: Session has expired on Monday, ' .
63- '10-Aug-15 01:00:00 PDT. The current time is Monday, 10-Aug-15 01:14:23 PDT.", ' .
64- '"type":"OAuthException","code":190,"error_subcode":463}} '
61+ "HTTP/1.1 500 OK \r\nFoo: Bar " ,
62+ '{"error":{"message":"Error validating access token: Session has expired on Monday, ' .
63+ '10-Aug-15 01:00:00 PDT. The current time is Monday, 10-Aug-15 01:14:23 PDT.", ' .
64+ '"type":"OAuthException","code":190,"error_subcode":463}} '
6565 );
6666 }
6767
6868 return new GraphRawResponse (
69- "HTTP/1.1 200 OK \r\nFoo: Bar " ,
70- '{"video_id":"1337","start_offset":"0","end_offset":"20","upload_session_id":"42"} '
69+ "HTTP/1.1 200 OK \r\nFoo: Bar " ,
70+ '{"video_id":"1337","start_offset":"0","end_offset":"20","upload_session_id":"42"} '
7171 );
7272 }
7373
7474 private function respondTransfer ()
7575 {
7676 if ($ this ->respondWith == 'FAIL_ON_TRANSFER ' ) {
7777 return new GraphRawResponse (
78- "HTTP/1.1 500 OK \r\nFoo: Bar " ,
79- '{"error":{"message":"There was a problem uploading your video. Please try uploading it again.", ' .
80- '"type":"FacebookApiException","code":6000,"error_subcode":1363019}} '
78+ "HTTP/1.1 500 OK \r\nFoo: Bar " ,
79+ '{"error":{"message":"There was a problem uploading your video. Please try uploading it again.", ' .
80+ '"type":"FacebookApiException","code":6000,"error_subcode":1363019}} '
8181 );
8282 }
8383
@@ -96,16 +96,16 @@ private function respondTransfer()
9696 $ this ->transferCount ++;
9797
9898 return new GraphRawResponse (
99- "HTTP/1.1 200 OK \r\nFoo: Bar " ,
100- json_encode ($ data )
99+ "HTTP/1.1 200 OK \r\nFoo: Bar " ,
100+ json_encode ($ data )
101101 );
102102 }
103103
104104 private function respondFinish ()
105105 {
106106 return new GraphRawResponse (
107- "HTTP/1.1 200 OK \r\nFoo: Bar " ,
108- '{"success":true} '
107+ "HTTP/1.1 200 OK \r\nFoo: Bar " ,
108+ '{"success":true} '
109109 );
110110 }
111111}
0 commit comments