浏览代码

Add test on die() call, refs #122

Stefan Siegl 10 年之前
父节点
当前提交
1613570ced
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      tests/die.phpt

+ 17 - 0
tests/die.phpt

@@ -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!