@@ -73,7 +73,7 @@ public function testMultiPartRequestWithSingleFile()
7373 ->method ('request ' )
7474 ->with ('POST ' , 'http://example.com/ ' , $ this ->callback (function ($ options ) {
7575 $ this ->assertStringContainsString ('Content-Type: multipart/form-data ' , implode ('' , $ options ['headers ' ]));
76- $ this ->assertInstanceOf (' \Generator ' , $ options ['body ' ]);
76+ $ this ->assertInstanceOf (\Generator::class , $ options ['body ' ]);
7777 $ this ->assertStringContainsString ('my_file ' , implode ('' , iterator_to_array ($ options ['body ' ])));
7878
7979 return true ;
@@ -183,7 +183,7 @@ protected function expectClientToSendRequestWithFiles(HttpClientInterface $clien
183183 ->method ('request ' )
184184 ->with ('POST ' , 'http://example.com/ ' , $ this ->callback (function ($ options ) use ($ fileContents ) {
185185 $ this ->assertStringContainsString ('Content-Type: multipart/form-data ' , implode ('' , $ options ['headers ' ]));
186- $ this ->assertInstanceOf (' \Generator ' , $ options ['body ' ]);
186+ $ this ->assertInstanceOf (\Generator::class , $ options ['body ' ]);
187187 $ body = implode ('' , iterator_to_array ($ options ['body ' ], false ));
188188 foreach ($ fileContents as $ content ) {
189189 $ this ->assertStringContainsString ($ content , $ body );
@@ -201,7 +201,7 @@ protected function expectClientToNotSendRequestWithFiles(HttpClientInterface $cl
201201 ->method ('request ' )
202202 ->with ('POST ' , 'http://example.com/ ' , $ this ->callback (function ($ options ) use ($ fileContents ) {
203203 $ this ->assertStringContainsString ('Content-Type: multipart/form-data ' , implode ('' , $ options ['headers ' ]));
204- $ this ->assertInstanceOf (' \Generator ' , $ options ['body ' ]);
204+ $ this ->assertInstanceOf (\Generator::class , $ options ['body ' ]);
205205 $ body = implode ('' , iterator_to_array ($ options ['body ' ], false ));
206206 foreach ($ fileContents as $ content ) {
207207 $ this ->assertStringNotContainsString ($ content , $ body );
0 commit comments