Skip to content

Commit e7e12e3

Browse files
committed
Update: Unit Test to #20632
1 parent 37e97db commit e7e12e3

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

Zend/tests/type_declarations/scalar_strict.phpt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ int(2147483647)
8484
*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, float given, called in %s on line %d
8585

8686
*** Trying bool(true)
87-
*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, true given, called in %s on line %d
87+
*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
8888

8989
*** Trying bool(false)
90-
*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, false given, called in %s on line %d
90+
*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, bool given, called in %s on line %d
9191

9292
*** Trying NULL
9393
*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, null given, called in %s on line %d
@@ -113,7 +113,7 @@ Testing 'float' type:
113113
float(1)
114114

115115
*** Trying string(1) "1"
116-
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
116+
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric string given, called in %s on line %d
117117

118118
*** Trying float(1)
119119
float(1)
@@ -122,13 +122,13 @@ float(1)
122122
float(1.5)
123123

124124
*** Trying string(2) "1a"
125-
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
125+
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric string given, called in %s on line %d
126126

127127
*** Trying string(1) "a"
128-
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
128+
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, non-numeric string given, called in %s on line %d
129129

130130
*** Trying string(0) ""
131-
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, string given, called in %s on line %d
131+
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, empty string given, called in %s on line %d
132132

133133
*** Trying int(2147483647)
134134
float(2147483647)
@@ -137,10 +137,10 @@ float(2147483647)
137137
float(NAN)
138138

139139
*** Trying bool(true)
140-
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, true given, called in %s on line %d
140+
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
141141

142142
*** Trying bool(false)
143-
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, false given, called in %s on line %d
143+
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, bool given, called in %s on line %d
144144

145145
*** Trying NULL
146146
*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, null given, called in %s on line %d
@@ -190,10 +190,10 @@ string(0) ""
190190
*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, float given, called in %s on line %d
191191

192192
*** Trying bool(true)
193-
*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, true given, called in %s on line %d
193+
*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
194194

195195
*** Trying bool(false)
196-
*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, false given, called in %s on line %d
196+
*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, bool given, called in %s on line %d
197197

198198
*** Trying NULL
199199
*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, null given, called in %s on line %d
@@ -219,7 +219,7 @@ Testing 'bool' type:
219219
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d
220220

221221
*** Trying string(1) "1"
222-
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
222+
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric string given, called in %s on line %d
223223

224224
*** Trying float(1)
225225
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
@@ -228,13 +228,13 @@ Testing 'bool' type:
228228
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, float given, called in %s on line %d
229229

230230
*** Trying string(2) "1a"
231-
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
231+
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric string given, called in %s on line %d
232232

233233
*** Trying string(1) "a"
234-
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
234+
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, non-numeric string given, called in %s on line %d
235235

236236
*** Trying string(0) ""
237-
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, string given, called in %s on line %d
237+
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, empty string given, called in %s on line %d
238238

239239
*** Trying int(2147483647)
240240
*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, int given, called in %s on line %d

ext/standard/tests/math/pow_variation1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ float(0.125)
8080
int(0)
8181
int(1)
8282
int(0)
83-
Unsupported operand types: string ** int
83+
Unsupported operand types: empty string ** int
8484
Unsupported operand types: array ** int
85-
Unsupported operand types: string ** int
85+
Unsupported operand types: non-numeric string ** int
8686
float(166.375)
8787
int(8)
8888
float(0.000250047)

0 commit comments

Comments
 (0)