From 683ac347c731e838f17d1408bf4f4c4fcbf98233 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 19 Oct 2013 02:25:25 +0200 Subject: [PATCH] Test export of undeclared properties in derived classes --- tests/derived_class_properties_extra.phpt | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/derived_class_properties_extra.phpt diff --git a/tests/derived_class_properties_extra.phpt b/tests/derived_class_properties_extra.phpt new file mode 100644 index 0000000..bbd4804 --- /dev/null +++ b/tests/derived_class_properties_extra.phpt @@ -0,0 +1,26 @@ +--TEST-- +Test V8::executeString() : Extra properties on derived class +--SKIPIF-- + +--FILE-- +testing = 23; + $this->extraTesting = 42; + } +} + +$v8 = new V8Wrapper(); +$v8->executeString('print(PHP.testing + "\n");'); +$v8->executeString('print(PHP.extraTesting + "\n");'); +?> +===EOF=== +--EXPECT-- +undefined +42 +===EOF===