summaryrefslogtreecommitdiffstats
path: root/teds-php83.patch
blob: 41d2662f6772f37c4a6b8a2082a45f36c09da154 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
From 590af3d5af3a26b9a0159eac95f19028cfe4c45e Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 4 Sep 2023 09:59:13 +0200
Subject: [PATCH] relax test expectations for 8.3

---
 tests/Map/toArray.phpt         | 8 ++++----
 tests/iterable/all_array.phpt  | 6 +++---
 tests/iterable/any_array.phpt  | 6 +++---
 tests/iterable/none_array.phpt | 4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/tests/Map/toArray.phpt b/tests/Map/toArray.phpt
index 11bce83..f0e43f1 100644
--- a/tests/Map/toArray.phpt
+++ b/tests/Map/toArray.phpt
@@ -26,7 +26,7 @@ foreach ([
     test_to_array($class);
 }
 ?>
---EXPECT--
+--EXPECTF--
 Test Teds\StrictSortedVectorMap
 array(2) {
   ["def"]=>
@@ -35,7 +35,7 @@ array(2) {
   ["v_abc"]=>
   string(3) "v_x"
 }
-Caught: Illegal offset type
+Caught: %s offset %s
 Test Teds\StrictTreeMap
 array(2) {
   ["def"]=>
@@ -44,7 +44,7 @@ array(2) {
   ["v_abc"]=>
   string(3) "v_x"
 }
-Caught: Illegal offset type
+Caught: %s offset %s
 Test Teds\StrictHashMap
 array(2) {
   ["v_abc"]=>
@@ -53,4 +53,4 @@ array(2) {
   object(stdClass)#2 (0) {
   }
 }
-Caught: Illegal offset type
\ No newline at end of file
+Caught: %s offset %s
diff --git a/tests/iterable/all_array.phpt b/tests/iterable/all_array.phpt
index 3ef30e1..8d3df7b 100644
--- a/tests/iterable/all_array.phpt
+++ b/tests/iterable/all_array.phpt
@@ -51,9 +51,9 @@ echo "\nDone";
 --EXPECTF--
 *** Testing not enough or wrong arguments ***
 Caught ArgumentCountError: Teds\all() expects at least 1 argument, 0 given
-Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type %s, bool given
+Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type %s, %s given
 bool(true)
-Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type %s, bool given
+Caught TypeError: Teds\all(): Argument #1 ($iterable) must be of type %s, %s given
 Caught TypeError: Teds\all(): Argument #2 ($callback) must be a valid callback%S, no array or string given
 
 *** Testing basic functionality ***
@@ -65,4 +65,4 @@ int(1)
 *** Testing edge cases ***
 bool(true)
 
-Done
\ No newline at end of file
+Done
diff --git a/tests/iterable/any_array.phpt b/tests/iterable/any_array.phpt
index 892c50c..09e28aa 100644
--- a/tests/iterable/any_array.phpt
+++ b/tests/iterable/any_array.phpt
@@ -60,9 +60,9 @@ echo "\nDone";
 --EXPECTF--
 *** Testing not enough or wrong arguments ***
 Caught ArgumentCountError: Teds\any() expects at least 1 argument, 0 given
-Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type %s, bool given
+Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type %s, %s given
 bool(false)
-Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type %s, bool given
+Caught TypeError: Teds\any(): Argument #1 ($iterable) must be of type %s, %s given
 Caught TypeError: Teds\any(): Argument #2 ($callback) must be a valid callback%S, no array or string given
 
 *** Testing basic functionality ***
@@ -78,4 +78,4 @@ Caught ArgumentCountError: Too few arguments to function {closure}(), 1 passed a
 bool(false)
 bool(true)
 
-Done
\ No newline at end of file
+Done
diff --git a/tests/iterable/none_array.phpt b/tests/iterable/none_array.phpt
index a9f779d..5e69706 100644
--- a/tests/iterable/none_array.phpt
+++ b/tests/iterable/none_array.phpt
@@ -60,9 +60,9 @@ echo "\nDone";
 --EXPECTF--
 *** Testing not enough or wrong arguments ***
 Caught ArgumentCountError: Teds\none() expects at least 1 argument, 0 given
-Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type %s, bool given
+Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type %s, %s given
 bool(true)
-Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type %s, bool given
+Caught TypeError: Teds\none(): Argument #1 ($iterable) must be of type %s, %s given
 Caught TypeError: Teds\none(): Argument #2 ($callback) must be a valid callback%S, no array or string given
 
 *** Testing basic functionality ***