diff --git a/tests/derived_class_properties_init.phpt b/tests/derived_class_properties_init.phpt index 413cc3ce..7740274b 100644 --- a/tests/derived_class_properties_init.phpt +++ b/tests/derived_class_properties_init.phpt @@ -13,6 +13,7 @@ class V8Wrapper extends V8Js { $v8 = new V8Wrapper(); echo($v8->testing."\n"); +// These are all properties of V8Wrapper, not exported to V8 $v8->executeString('print(PHP.testing + "\n");'); $v8->executeString('print(PHP.protectedVar + "\n");'); $v8->executeString('print(PHP.privateVar + "\n");'); @@ -20,7 +21,7 @@ $v8->executeString('print(PHP.privateVar + "\n");'); ===EOF=== --EXPECT-- 23 -23 +undefined undefined undefined ===EOF=== diff --git a/tests/get_accessor.phpt b/tests/get_accessor.phpt index 4a2de384..82a0a688 100644 --- a/tests/get_accessor.phpt +++ b/tests/get_accessor.phpt @@ -15,7 +15,9 @@ myobj.$foobar = 'CHANGED'; // should be read only! print(myobj.$foobar + "\n"); // Undefined (in 1st run!) EOT; -$a = new V8Js("myobj", array('$_SERVER' => '_SERVER', '$foobar' => 'myfoobar')); +$myfoobar = 'undefined'; + +$a = new V8Js("myobj", array('_SERVER' => &$_SERVER, 'foobar' => &$myfoobar)); $a->executeString($JS, "test1.js"); $myfoobar = 'myfoobarfromphp'; @@ -37,5 +39,5 @@ myfoobarfromphp %d myfoobarfromphp NULL -NULL +string(15) "myfoobarfromphp" ===EOF=== diff --git a/tests/object.phpt b/tests/object.phpt index 0798697f..4a19914a 100644 --- a/tests/object.phpt +++ b/tests/object.phpt @@ -45,6 +45,6 @@ var_dump($a->myobj->foo); mytest => function () { [native code] } $foo => ORIGINAL Here be monsters.. -CHANGED -string(7) "CHANGED" +ORIGINAL +string(8) "ORIGINAL" ===EOF===