From 67269ddfc48899d1cb03948858cf31e4f58d5560 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 5 Mar 2016 17:11:52 +0100 Subject: [PATCH] Adapt test expectations to V8 error message changes V8 5.1 uses slightly changed SyntaxError messages. This adapts our tests as needed (for support of V8 5.1 as well as older versions) --- tests/checkstring.phpt | 2 +- tests/checkstring_compile.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checkstring.phpt b/tests/checkstring.phpt index b5f2790..9d6ce0e 100644 --- a/tests/checkstring.phpt +++ b/tests/checkstring.phpt @@ -20,5 +20,5 @@ Deprecated: Function V8Js::checkString() is deprecated in %s on line %d bool(true) Deprecated: Function V8Js::checkString() is deprecated in %s on line %d -string(60) "V8Js::checkString():1: SyntaxError: Unexpected token ILLEGAL" +string(%d) "V8Js::checkString():1: SyntaxError: %s" ===EOF=== diff --git a/tests/checkstring_compile.phpt b/tests/checkstring_compile.phpt index 2c9e188..c571e06 100644 --- a/tests/checkstring_compile.phpt +++ b/tests/checkstring_compile.phpt @@ -17,5 +17,5 @@ try { ===EOF=== --EXPECTF-- resource(%d) of type (V8Js script) -string(62) "V8Js::compileString():1: SyntaxError: Unexpected token ILLEGAL" +string(%d) "V8Js::compileString():1: SyntaxError: %s" ===EOF===