diff --git a/tests/property_visibility-enumerate.phpt b/tests/property_visibility-enumerate.phpt new file mode 100644 index 0000000..ce82b59 --- /dev/null +++ b/tests/property_visibility-enumerate.phpt @@ -0,0 +1,56 @@ +--TEST-- +Test V8::executeString() : Property visibility - enumerate +--SKIPIF-- + +--FILE-- + $value) { + echo("$key => "); + var_dump($value); + } + } +} + +$js = new V8Js(); +$js->foo = new Foo(); + +$script = <<executeString($script); + +echo "--- PHP ---\n"; +$js->foo->dump(); +?> +===EOF=== +--EXPECT-- +string(4) "dump" +string(8) "function" +string(7) "$pubBar" +string(6) "pubBar" +--- PHP --- +privBar => string(7) "privBar" +protBar => string(7) "protBar" +pubBar => string(6) "pubBar" +===EOF===