From a3957f3844189d0e51cf8307c3da8ed08010e73d Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sun, 7 Jul 2013 23:04:19 +0200 Subject: [PATCH] Add test for regression pointed out in pull request #14 --- tests/context_temp_creation.phpt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/context_temp_creation.phpt diff --git a/tests/context_temp_creation.phpt b/tests/context_temp_creation.phpt new file mode 100644 index 0000000..a6893bd --- /dev/null +++ b/tests/context_temp_creation.phpt @@ -0,0 +1,32 @@ +--TEST-- +Test V8::executeString() : correct temp context construction +--SKIPIF-- + +--FILE-- +_b = $a; + } + + function test() { + print_r($this->_b); + } +} + +$v8->failer = new Failer(); +$v8->executeString('PHP.failer.call({ foo: 23 });'); +$v8->failer->test(); +?> +===EOF=== +--EXPECT-- +V8Object Object +( + [foo] => 23 +) +===EOF===