Skip to content

Commit 56d4cc2

Browse files
committed
Changed the test cases from single quotes to double quotes and the null byte from chr(0) to \0 (which is why the double quotes were needed).
1 parent ce2e4d3 commit 56d4cc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/internal/Magento/Framework/App/Test/Unit/HttpTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,19 +223,19 @@ public function dataProviderForTestLaunchHeadRequest()
223223
{
224224
return [
225225
[
226-
'<html><head></head><body>Test</body></html>', // Ascii text
226+
"<html><head></head><body>Test</body></html>", // Ascii text
227227
43 // Expected Content-Length
228228
],
229229
[
230-
'<html><head></head><body>部落格</body></html>', // Multi-byte characters
230+
"<html><head></head><body>部落格</body></html>", // Multi-byte characters
231231
48 // Expected Content-Length
232232
],
233233
[
234-
'<html><head></head><body>'.chr(0).'</body></html>', // Null byte
234+
"<html><head></head><body>\0</body></html>", // Null byte
235235
40 // Expected Content-Length
236236
],
237237
[
238-
'<html><head></head>خرید<body></body></html>', // LTR text
238+
"<html><head></head>خرید<body></body></html>", // LTR text
239239
47 // Expected Content-Length
240240
]
241241
];

0 commit comments

Comments
 (0)