Skip to content

Commit 84d6632

Browse files
Update tests
1 parent 5ac4a0c commit 84d6632

7 files changed

Lines changed: 45 additions & 45 deletions

File tree

ext/standard/tests/general_functions/gettype_settype_variation2.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ string(7) "integer"
282282
-- Iteration 18 --
283283
string(6) "string"
284284
bool(true)
285-
int(1)
285+
int(100)
286286
string(7) "integer"
287287
-- Iteration 19 --
288288
string(6) "string"
@@ -297,7 +297,7 @@ string(7) "integer"
297297
-- Iteration 21 --
298298
string(6) "string"
299299
bool(true)
300-
int(-1)
300+
int(0)
301301
string(7) "integer"
302302
-- Iteration 22 --
303303
string(6) "string"
@@ -312,7 +312,7 @@ string(7) "integer"
312312
-- Iteration 24 --
313313
string(6) "string"
314314
bool(true)
315-
int(1)
315+
int(100)
316316
string(7) "integer"
317317
-- Iteration 25 --
318318
string(6) "string"
@@ -327,7 +327,7 @@ string(7) "integer"
327327
-- Iteration 27 --
328328
string(6) "string"
329329
bool(true)
330-
int(-1)
330+
int(0)
331331
string(7) "integer"
332332
-- Iteration 28 --
333333
string(6) "string"
@@ -687,7 +687,7 @@ string(7) "integer"
687687
-- Iteration 18 --
688688
string(6) "string"
689689
bool(true)
690-
int(1)
690+
int(100)
691691
string(7) "integer"
692692
-- Iteration 19 --
693693
string(6) "string"
@@ -702,7 +702,7 @@ string(7) "integer"
702702
-- Iteration 21 --
703703
string(6) "string"
704704
bool(true)
705-
int(-1)
705+
int(0)
706706
string(7) "integer"
707707
-- Iteration 22 --
708708
string(6) "string"
@@ -717,7 +717,7 @@ string(7) "integer"
717717
-- Iteration 24 --
718718
string(6) "string"
719719
bool(true)
720-
int(1)
720+
int(100)
721721
string(7) "integer"
722722
-- Iteration 25 --
723723
string(6) "string"
@@ -732,7 +732,7 @@ string(7) "integer"
732732
-- Iteration 27 --
733733
string(6) "string"
734734
bool(true)
735-
int(-1)
735+
int(0)
736736
string(7) "integer"
737737
-- Iteration 28 --
738738
string(6) "string"

ext/standard/tests/math/decbin_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ string(2) "11"
3131
string(7) "1011111"
3232
string(4) "1010"
3333
string(12) "111101101110"
34-
string(2) "11"
34+
string(12) "111101101110"
3535
string(6) "100111"
3636
string(1) "0"
3737
string(1) "1"

ext/standard/tests/math/dechex_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ string(1) "3"
3030
string(2) "5f"
3131
string(1) "a"
3232
string(3) "f6e"
33-
string(1) "3"
33+
string(3) "f6e"
3434
string(2) "27"
3535
string(1) "0"
3636
string(1) "1"

ext/standard/tests/math/decoct_basic.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ string(1) "3"
3030
string(3) "137"
3131
string(2) "12"
3232
string(4) "7556"
33-
string(1) "3"
33+
string(4) "7556"
3434
string(2) "47"
3535
string(1) "0"
3636
string(1) "1"

tests/lang/operators/bitwiseShiftLeft_variationStr_64bit.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -226,17 +226,17 @@ int(984)
226226
--- testing: '123abc' << 'a5.9' ---
227227
int(123)
228228
--- testing: '123e5' << '0' ---
229-
int(123)
229+
int(12300000)
230230
--- testing: '123e5' << '65' ---
231231
int(0)
232232
--- testing: '123e5' << '-44' ---
233233
Exception: Bit shift by negative number
234234
--- testing: '123e5' << '1.2' ---
235-
int(246)
235+
int(24600000)
236236
--- testing: '123e5' << '-7.7' ---
237237
Exception: Bit shift by negative number
238238
--- testing: '123e5' << 'abc' ---
239-
int(123)
239+
int(12300000)
240240
--- testing: '123e5' << '123abc' ---
241241
int(0)
242242
--- testing: '123e5' << '123e5' ---
@@ -250,21 +250,21 @@ int(0)
250250
--- testing: '123e5' << '123abc ' ---
251251
int(0)
252252
--- testing: '123e5' << '3.4a' ---
253-
int(984)
253+
int(98400000)
254254
--- testing: '123e5' << 'a5.9' ---
255-
int(123)
255+
int(12300000)
256256
--- testing: '123e5xyz' << '0' ---
257-
int(123)
257+
int(12300000)
258258
--- testing: '123e5xyz' << '65' ---
259259
int(0)
260260
--- testing: '123e5xyz' << '-44' ---
261261
Exception: Bit shift by negative number
262262
--- testing: '123e5xyz' << '1.2' ---
263-
int(246)
263+
int(24600000)
264264
--- testing: '123e5xyz' << '-7.7' ---
265265
Exception: Bit shift by negative number
266266
--- testing: '123e5xyz' << 'abc' ---
267-
int(123)
267+
int(12300000)
268268
--- testing: '123e5xyz' << '123abc' ---
269269
int(0)
270270
--- testing: '123e5xyz' << '123e5' ---
@@ -278,9 +278,9 @@ int(0)
278278
--- testing: '123e5xyz' << '123abc ' ---
279279
int(0)
280280
--- testing: '123e5xyz' << '3.4a' ---
281-
int(984)
281+
int(98400000)
282282
--- testing: '123e5xyz' << 'a5.9' ---
283-
int(123)
283+
int(12300000)
284284
--- testing: ' 123abc' << '0' ---
285285
int(123)
286286
--- testing: ' 123abc' << '65' ---

tests/lang/operators/bitwiseShiftRight_variationStr.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,17 @@ int(15)
222222
--- testing: '123abc' >> 'a5.9' ---
223223
int(123)
224224
--- testing: '123e5' >> '0' ---
225-
int(123)
225+
int(12300000)
226226
--- testing: '123e5' >> '65' ---
227227
int(0)
228228
--- testing: '123e5' >> '-44' ---
229229
Exception: Bit shift by negative number
230230
--- testing: '123e5' >> '1.2' ---
231-
int(61)
231+
int(6150000)
232232
--- testing: '123e5' >> '-7.7' ---
233233
Exception: Bit shift by negative number
234234
--- testing: '123e5' >> 'abc' ---
235-
int(123)
235+
int(12300000)
236236
--- testing: '123e5' >> '123abc' ---
237237
int(0)
238238
--- testing: '123e5' >> '123e5' ---
@@ -246,21 +246,21 @@ int(0)
246246
--- testing: '123e5' >> '123abc ' ---
247247
int(0)
248248
--- testing: '123e5' >> '3.4a' ---
249-
int(15)
249+
int(1537500)
250250
--- testing: '123e5' >> 'a5.9' ---
251-
int(123)
251+
int(12300000)
252252
--- testing: '123e5xyz' >> '0' ---
253-
int(123)
253+
int(12300000)
254254
--- testing: '123e5xyz' >> '65' ---
255255
int(0)
256256
--- testing: '123e5xyz' >> '-44' ---
257257
Exception: Bit shift by negative number
258258
--- testing: '123e5xyz' >> '1.2' ---
259-
int(61)
259+
int(6150000)
260260
--- testing: '123e5xyz' >> '-7.7' ---
261261
Exception: Bit shift by negative number
262262
--- testing: '123e5xyz' >> 'abc' ---
263-
int(123)
263+
int(12300000)
264264
--- testing: '123e5xyz' >> '123abc' ---
265265
int(0)
266266
--- testing: '123e5xyz' >> '123e5' ---
@@ -274,9 +274,9 @@ int(0)
274274
--- testing: '123e5xyz' >> '123abc ' ---
275275
int(0)
276276
--- testing: '123e5xyz' >> '3.4a' ---
277-
int(15)
277+
int(1537500)
278278
--- testing: '123e5xyz' >> 'a5.9' ---
279-
int(123)
279+
int(12300000)
280280
--- testing: ' 123abc' >> '0' ---
281281
int(123)
282282
--- testing: ' 123abc' >> '65' ---

tests/lang/operators/modulus_variationStr.phpt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ Exception: Modulo by zero
208208
--- testing: '123abc' % '123abc' ---
209209
int(0)
210210
--- testing: '123abc' % '123e5' ---
211-
int(0)
211+
int(123)
212212
--- testing: '123abc' % '123e5xyz' ---
213-
int(0)
213+
int(123)
214214
--- testing: '123abc' % ' 123abc' ---
215215
int(0)
216216
--- testing: '123abc' % '123 abc' ---
@@ -224,13 +224,13 @@ Exception: Modulo by zero
224224
--- testing: '123e5' % '0' ---
225225
Exception: Modulo by zero
226226
--- testing: '123e5' % '65' ---
227-
int(58)
227+
int(50)
228228
--- testing: '123e5' % '-44' ---
229-
int(35)
229+
int(20)
230230
--- testing: '123e5' % '1.2' ---
231231
int(0)
232232
--- testing: '123e5' % '-7.7' ---
233-
int(4)
233+
int(6)
234234
--- testing: '123e5' % 'abc' ---
235235
Exception: Modulo by zero
236236
--- testing: '123e5' % '123abc' ---
@@ -252,13 +252,13 @@ Exception: Modulo by zero
252252
--- testing: '123e5xyz' % '0' ---
253253
Exception: Modulo by zero
254254
--- testing: '123e5xyz' % '65' ---
255-
int(58)
255+
int(50)
256256
--- testing: '123e5xyz' % '-44' ---
257-
int(35)
257+
int(20)
258258
--- testing: '123e5xyz' % '1.2' ---
259259
int(0)
260260
--- testing: '123e5xyz' % '-7.7' ---
261-
int(4)
261+
int(6)
262262
--- testing: '123e5xyz' % 'abc' ---
263263
Exception: Modulo by zero
264264
--- testing: '123e5xyz' % '123abc' ---
@@ -292,9 +292,9 @@ Exception: Modulo by zero
292292
--- testing: ' 123abc' % '123abc' ---
293293
int(0)
294294
--- testing: ' 123abc' % '123e5' ---
295-
int(0)
295+
int(123)
296296
--- testing: ' 123abc' % '123e5xyz' ---
297-
int(0)
297+
int(123)
298298
--- testing: ' 123abc' % ' 123abc' ---
299299
int(0)
300300
--- testing: ' 123abc' % '123 abc' ---
@@ -320,9 +320,9 @@ Exception: Modulo by zero
320320
--- testing: '123 abc' % '123abc' ---
321321
int(0)
322322
--- testing: '123 abc' % '123e5' ---
323-
int(0)
323+
int(123)
324324
--- testing: '123 abc' % '123e5xyz' ---
325-
int(0)
325+
int(123)
326326
--- testing: '123 abc' % ' 123abc' ---
327327
int(0)
328328
--- testing: '123 abc' % '123 abc' ---
@@ -348,9 +348,9 @@ Exception: Modulo by zero
348348
--- testing: '123abc ' % '123abc' ---
349349
int(0)
350350
--- testing: '123abc ' % '123e5' ---
351-
int(0)
351+
int(123)
352352
--- testing: '123abc ' % '123e5xyz' ---
353-
int(0)
353+
int(123)
354354
--- testing: '123abc ' % ' 123abc' ---
355355
int(0)
356356
--- testing: '123abc ' % '123 abc' ---

0 commit comments

Comments
 (0)