X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fencstream017.phpt;fp=tests%2Fencstream017.phpt;h=6ca281da898300349d473797381b0686a2d34b99;hb=6e51a51f7f316102113460250bc66f593063ad55;hp=0000000000000000000000000000000000000000;hpb=fd20878661cca54ae4445dfc7e48ebe1d5a014e9;p=m6w6%2Fext-http diff --git a/tests/encstream017.phpt b/tests/encstream017.phpt new file mode 100644 index 0000000..6ca281d --- /dev/null +++ b/tests/encstream017.phpt @@ -0,0 +1,33 @@ +--TEST-- +encoding stream brotli without flush +--SKIPIF-- + +--FILE-- +update($line))) { + foreach(str_split($temp) as $byte) { + $data .= $infl->update($byte); + } + } +} +if (strlen($temp = $defl->finish())) { + $data .= $infl->update($temp); +} +$data .= $infl->finish(); +var_dump(implode("", $file) === $data); +?> +DONE +--EXPECT-- +Test +bool(true) +DONE