X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fmessagebody008.phpt;fp=tests%2Fmessagebody008.phpt;h=cb9612cf2c484da9b8a15725977ebaeed5c26f78;hp=0000000000000000000000000000000000000000;hb=5b46115fea57ad7d842f9c713ca854da24d842cd;hpb=805287392b6266d05533043509367d7e411e595c diff --git a/tests/messagebody008.phpt b/tests/messagebody008.phpt new file mode 100644 index 0000000..cb9612c --- /dev/null +++ b/tests/messagebody008.phpt @@ -0,0 +1,23 @@ +--TEST-- +message body to callback +--SKIPIF-- + +--FILE-- +toCallback( + function($body, $string) use (&$s) { $s.=$string; } +); +var_dump($s === (string) $file); + +?> +DONE +--EXPECT-- +Test +bool(true) +DONE