From 956eacb180bdfbc1b9351fa19d929a131f4c7b30 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Fri, 11 Apr 2014 20:50:36 +0200 Subject: [PATCH] Add test on property visibility regarding hasOwnProperty --- tests/property_visibility-has-property.phpt | 49 +++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 tests/property_visibility-has-property.phpt diff --git a/tests/property_visibility-has-property.phpt b/tests/property_visibility-has-property.phpt new file mode 100644 index 0000000..1fdb5df --- /dev/null +++ b/tests/property_visibility-has-property.phpt @@ -0,0 +1,49 @@ +--TEST-- +Test V8::executeString() : Property visibility - has property +--SKIPIF-- + +--FILE-- +foo = new Foo(); + +$script = <<executeString($script); + +?> +===EOF=== +--EXPECT-- +bool(false) +bool(false) +bool(true) +bool(false) +bool(true) +bool(true) +bool(true) +bool(true) +===EOF===