mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 09:21:52 +00:00
Add test from issue #54
This commit is contained in:
parent
d6a4a3c960
commit
645b0df999
23
tests/derived_class_properties.phpt
Normal file
23
tests/derived_class_properties.phpt
Normal file
@ -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===
|
Loading…
Reference in New Issue
Block a user