--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