We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67bb73 commit 260a250Copy full SHA for 260a250
tests/bson/bson-javascript-001.phpt
@@ -12,15 +12,15 @@ $js = new $classname("function foo(bar) {var baz = bar; var bar = foo; return ba
12
$jswscope = new $classname("function foo(bar) {var baz = bar; var bar = foo; return bar; }", array("foo" => 42));
13
$tests = array(
14
array("js" => $js),
15
- array("jswscope" => $jswscope),
+ array("js" => $jswscope),
16
);
17
18
foreach($tests as $n => $test) {
19
echo "Test#{$n}", "\n";
20
$s = fromPHP($test);
21
$testagain = toPHP($s);
22
- var_dump(current($test) instanceof $classname);
23
- var_dump(current($testagain) instanceof $classname);
+ var_dump($test['js'] instanceof $classname);
+ var_dump($testagain->js instanceof $classname);
24
}
25
26
?>
0 commit comments