0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 14:01:53 +00:00

Add test for #316

This commit is contained in:
Stefan Siegl 2017-06-08 23:15:06 +02:00
parent 4baf9e93b2
commit 36f52e84d1
No known key found for this signature in database
GPG Key ID: 51575950154839CD

View File

@ -0,0 +1,19 @@
--TEST--
Test V8::executeString() : Issue #316 endless property iteration
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
$v8 = new V8Js();
$values = $v8->executeString('({test: "test"})');
foreach ($values as $value) {
var_dump($value);
}
?>
===EOF===
--EXPECT--
string(4) "test"
===EOF===