Stefan Siegl преди 11 години
родител
ревизия
645b0df999
променени са 1 файла, в които са добавени 23 реда и са изтрити 0 реда
  1. 23 0
      tests/derived_class_properties.phpt

+ 23 - 0
tests/derived_class_properties.phpt

@@ -0,0 +1,23 @@
+--TEST--
+Test V8::executeString() : Properties on derived class
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--FILE--
+<?php
+
+class V8Wrapper extends V8Js {
+    public $testing;
+
+    public function __construct() {
+        parent::__construct();
+        $this->testing = 23;
+    }
+}
+
+$v8 = new V8Wrapper();
+$v8->executeString('print("foo\n");');
+?>
+===EOF===
+--EXPECT--
+foo
+===EOF===