From 1613570ceda1e127afd137551835c8dff15d4b6f Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Wed, 10 Dec 2014 01:10:30 +0100 Subject: [PATCH] Add test on die() call, refs #122 --- tests/die.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/die.phpt 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!