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(
67
67
public function testSendLargeFile ()
68
68
{
69
69
$ filename = $ this ->createTempFile ();
70
- $ fd = fopen ($ filename , 'a ' );
70
+ $ fd = fopen ($ filename , 'ab ' );
71
71
$ buffer = str_repeat ('x ' , 1024 );
72
72
for ($ i = 0 ; $ i < 2048 ; $ i ++) {
73
73
fwrite ($ fd , $ buffer );
@@ -91,8 +91,8 @@ public function testSendLargeFile()
91
91
);
92
92
93
93
$ 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 ' ]);
96
96
}
97
97
98
98
/**
You can’t perform that action at this time.
0 commit comments