Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
opt
/
php-8.3
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/thread-self/root/opt/php-8.3/share/test/mongodb/tests/bson/bson-javascript-tostring-001.phpt
--TEST-- MongoDB\BSON\Javascript::__toString() --FILE-- <?php $js = new MongoDB\BSON\Javascript('function() { return 1; }'); var_dump((string) $js); $js = new MongoDB\BSON\Javascript('function() { return bar; }', ['bar' => 1]); var_dump((string) $js); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- string(24) "function() { return 1; }" string(26) "function() { return bar; }" ===DONE===