@@ -387,12 +387,12 @@ public function testPostAndFiles() : void
387387 self ::assertTrue ($ request ->hasFiles ());
388388 }
389389
390- public function testGetFormData () : void
390+ public function testGetBodyData () : void
391391 {
392392 $ request = new Request ('http://foo.com ' );
393- self ::assertSame ('' , $ request ->getFormData ());
393+ self ::assertSame ('' , $ request ->getBodyData ());
394394 $ request ->setBody (['foo ' => 123 ]);
395- self ::assertSame ('foo=123 ' , $ request ->getFormData ());
395+ self ::assertSame ('foo=123 ' , $ request ->getBodyData ());
396396 $ request ->setFiles ([
397397 'one ' => __FILE__ ,
398398 'two ' => [
@@ -405,7 +405,7 @@ public function testGetFormData() : void
405405 ],
406406 ],
407407 ]);
408- $ postAndFiles = $ request ->getFormData ();
408+ $ postAndFiles = $ request ->getBodyData ();
409409 self ::assertSame ('123 ' , $ postAndFiles ['foo ' ]); // @phpstan-ignore-line
410410 self ::assertInstanceOf (\CURLFile::class, $ postAndFiles ['one ' ]); // @phpstan-ignore-line
411411 self ::assertInstanceOf (\CURLFile::class, $ postAndFiles ['two[three] ' ]); // @phpstan-ignore-line
@@ -418,7 +418,7 @@ public function testGetFormData() : void
418418 $ this ->expectExceptionMessage (
419419 "Field 'foo' does not match a file: bar.war "
420420 );
421- $ request ->getFormData ();
421+ $ request ->getBodyData ();
422422 }
423423
424424 public function testSetAndGetOptions () : void
0 commit comments