summaryrefslogtreecommitdiffstats
path: root/165.patch
blob: aa0ee41e3154604e62860b66988887f627d42048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From f3523b85992ac1803294882e320c1111d0b9e055 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 17 Jul 2020 11:14:25 +0200
Subject: [PATCH] relax tests for 8.0 master

---
 tests/parse_code_parse_error.phpt | 4 ++--
 tests/parse_file_parse_error.phpt | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/parse_code_parse_error.phpt b/tests/parse_code_parse_error.phpt
index 57504cf..d82c043 100644
--- a/tests/parse_code_parse_error.phpt
+++ b/tests/parse_code_parse_error.phpt
@@ -18,11 +18,11 @@ try {
 
 ?>
 --EXPECTF--
-ParseError: syntax error, unexpected '&', expecting end of file in string code:1
+ParseError: syntax error, unexpected %s&%s expecting end of file in string code:1
 Stack trace:
 #0 %s(%d): ast\parse_code('%s', %d)
 #1 {main}
-ParseError: syntax error, unexpected '&', expecting end of file in file.php:1
+ParseError: syntax error, unexpected %s&%s expecting end of file in file.php:1
 Stack trace:
 #0 %s(%d): ast\parse_code('%s', %d, 'file.php')
 #1 {main}
diff --git a/tests/parse_file_parse_error.phpt b/tests/parse_file_parse_error.phpt
index 88c0678..8e4a003 100644
--- a/tests/parse_file_parse_error.phpt
+++ b/tests/parse_file_parse_error.phpt
@@ -11,7 +11,7 @@ try {
 
 ?>
 --EXPECTF--
-ParseError: syntax error, unexpected ')' in %stests/invalid_file.php:3
+ParseError: syntax error, unexpected %s)%s in %stests/invalid_file.php:3
 Stack trace:
 #0 %s(%d): ast\parse_file('%s', %d)
 #1 {main}