File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testSendRequestWithOutcome(
6767 public function testSendLargeFile ()
6868 {
6969 $ filename = $ this ->createTempFile ();
70- $ fd = fopen ($ filename , 'a ' );
70+ $ fd = fopen ($ filename , 'ab ' );
7171 $ buffer = str_repeat ('x ' , 1024 );
7272 for ($ i = 0 ; $ i < 2048 ; $ i ++) {
7373 fwrite ($ fd , $ buffer );
@@ -91,8 +91,8 @@ public function testSendLargeFile()
9191 );
9292
9393 $ request = $ this ->getRequest ();
94- self ::assertArrayHasKey ('CONTENT_LENGTH ' , $ request ['SERVER ' ]);
95- self ::assertEquals ($ body ->getSize (), $ request ['SERVER ' ]['CONTENT_LENGTH ' ]);
94+ self ::assertArrayHasKey ('HTTP_CONTENT_LENGTH ' , $ request ['SERVER ' ]);
95+ self ::assertEquals ($ body ->getSize (), $ request ['SERVER ' ]['HTTP_CONTENT_LENGTH ' ]);
9696 }
9797
9898 /**
You can’t perform that action at this time.
0 commit comments