diff --git a/tests/die.phpt b/tests/die.phpt new file mode 100644 index 0000000..eb35da8 --- /dev/null +++ b/tests/die.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test V8::executeString() : Handle die() gracefully +--SKIPIF-- + +--FILE-- +foo = function() { + echo "Hallo\n"; + die("Goodbye cruel world!\n"); +}; +$v8->executeString('PHP.foo();'); +?> +===EOF=== +--EXPECT-- +Hallo +Goodbye cruel world!