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

Add test on die() call, refs #122

This commit is contained in:
Stefan Siegl 2014-12-10 01:10:30 +01:00
parent a2a9c30a11
commit 1613570ced

17
tests/die.phpt Normal file
View File

@ -0,0 +1,17 @@
--TEST--
Test V8::executeString() : Handle die() gracefully
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
$v8 = new V8Js();
$v8->foo = function() {
echo "Hallo\n";
die("Goodbye cruel world!\n");
};
$v8->executeString('PHP.foo();');
?>
===EOF===
--EXPECT--
Hallo
Goodbye cruel world!