mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 19:51:51 +00:00
28 lines
572 B
Plaintext
28 lines
572 B
Plaintext
|
--TEST--
|
||
|
Test V8::executeString() : Protected and private properties on derived class
|
||
|
--SKIPIF--
|
||
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class V8Wrapper extends V8Js {
|
||
|
protected $testing;
|
||
|
private $privTesting;
|
||
|
|
||
|
public function __construct() {
|
||
|
parent::__construct();
|
||
|
$this->testing = 23;
|
||
|
$this->privTesting = 42;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$v8 = new V8Wrapper();
|
||
|
$v8->executeString('print(PHP.testing + "\n");');
|
||
|
$v8->executeString('print(PHP.privTesting + "\n");');
|
||
|
?>
|
||
|
===EOF===
|
||
|
--EXPECT--
|
||
|
undefined
|
||
|
undefined
|
||
|
===EOF===
|