@@ -61,7 +61,7 @@ public function testPost()
6161 $ this ->assertInstanceOf ('Psr\Http\Message\ResponseInterface ' , $ response );
6262 $ this ->assertSame (200 , $ response ->getStatusCode ());
6363
64- $ contents = json_decode ($ response ->getBody ()->getContents ());
64+ $ contents = json_decode ($ response ->getBody ()->__toString ());
6565
6666 $ this ->assertEquals ($ testData , $ contents ->data );
6767 }
@@ -132,7 +132,7 @@ public function testAutoSetContentLength()
132132 $ this ->assertInstanceOf ('Psr\Http\Message\ResponseInterface ' , $ response );
133133 $ this ->assertSame (200 , $ response ->getStatusCode ());
134134
135- $ contents = json_decode ($ response ->getBody ()->getContents ());
135+ $ contents = json_decode ($ response ->getBody ()->__toString ());
136136
137137 $ this ->assertEquals ($ testData , $ contents ->data );
138138 }
@@ -151,7 +151,7 @@ public function testEncoding()
151151
152152 $ this ->assertInstanceOf ('Psr\Http\Message\ResponseInterface ' , $ response );
153153 $ this ->assertSame (200 , $ response ->getStatusCode ());
154- $ this ->assertContains ('€ ' , $ response ->getBody ()->getContents ());
154+ $ this ->assertContains ('€ ' , $ response ->getBody ()->__toString ());
155155 }
156156
157157 /**
@@ -168,7 +168,7 @@ public function testGzip()
168168
169169 $ this ->assertInstanceOf ('Psr\Http\Message\ResponseInterface ' , $ response );
170170 $ this ->assertSame (200 , $ response ->getStatusCode ());
171- $ this ->assertContains ('gzip ' , $ response ->getBody ()->getContents ());
171+ $ this ->assertContains ('gzip ' , $ response ->getBody ()->__toString ());
172172 }
173173
174174 /**
@@ -185,7 +185,7 @@ public function testDeflate()
185185
186186 $ this ->assertInstanceOf ('Psr\Http\Message\ResponseInterface ' , $ response );
187187 $ this ->assertSame (200 , $ response ->getStatusCode ());
188- $ this ->assertContains ('deflate ' , $ response ->getBody ()->getContents ());
188+ $ this ->assertContains ('deflate ' , $ response ->getBody ()->__toString ());
189189 }
190190
191191 /**
@@ -219,7 +219,7 @@ public function testChunked()
219219 $ this ->assertInstanceOf ('Psr\Http\Message\ResponseInterface ' , $ response );
220220 $ this ->assertSame (200 , $ response ->getStatusCode ());
221221
222- $ content = @json_decode ($ response ->getBody ()->getContents ());
222+ $ content = @json_decode ($ response ->getBody ()->__toString ());
223223
224224 $ this ->assertNotNull ($ content );
225225 }
0 commit comments