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-7.1
/
share
/
test
/
mongodb
/
tests
/
bson
/
//proc/thread-self/root/opt/php-7.1/share/test/mongodb/tests/bson/bson-javascript-tostring-001.phpt
--TEST-- MongoDB\BSON\Javascript::__toString() --FILE-- <?php $js = new MongoDB\BSON\Javascript('function foo() { return 1; }'); var_dump((string) $js); $js = new MongoDB\BSON\Javascript('function foo() { return bar; }', ['bar' => 1]); var_dump((string) $js); ?> ===DONE=== <?php exit(0); ?> --EXPECT-- string(28) "function foo() { return 1; }" string(30) "function foo() { return bar; }" ===DONE===