Skip to content

Commit b01ccfa

Browse files
committed
test: refactor output handler
1 parent 5e030b0 commit b01ccfa

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

tests/files/ob_008.br

6 Bytes
Binary file not shown.

tests/files/ob_011.br

15 Bytes
Binary file not shown.

tests/files/ob_hi.br

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
�hi
2+


tests/ob_001.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ HTTP_ACCEPT_ENCODING=br
1515
<?php
1616
echo "hi\n";
1717
?>
18-
--EXPECTF--
19-
€hi
20-

18+
--EXPECT_EXTERNAL--
19+
files/ob_hi.br
20+
--EXPECTHEADERS--
21+
Content-Encoding: br
22+
Vary: Accept-Encoding

tests/ob_003.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ dummy=42
1616
ini_set('brotli.output_compression', 1);
1717
echo "hi\n";
1818
?>
19-
--EXPECTF--
20-
€hi
21-

19+
--EXPECT_EXTERNAL--
20+
files/ob_hi.br
2221
--EXPECTHEADERS--
2322
Content-Encoding: br
2423
Vary: Accept-Encoding

tests/ob_004.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ dummy=42
1616
ob_start('ob_brotli_handler');
1717
echo "hi\n";
1818
?>
19-
--EXPECTF--
20-
€hi
21-

19+
--EXPECT_EXTERNAL--
20+
files/ob_hi.br
2221
--EXPECTHEADERS--
2322
Content-Encoding: br
2423
Vary: Accept-Encoding

tests/ob_008.phpt

18 Bytes
Binary file not shown.

tests/ob_011.phpt

8 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)