@@ -298,16 +298,13 @@ public function provideSqlDataWillBeReturnedWithType()
298298 [
299299 ['42 ' , 42 ],
300300 ['2.5 ' , 2.5 ],
301+ ['1.0 ' , 1.0 ],
301302 ['null ' , null ],
302303 ['"hello" ' , 'hello ' ],
303304 ['"hellö" ' , 'hellö ' ],
304305 ['X \'01020300 \'' , "\x01\x02\x03\x00" ],
305306 ['X \'3FF3 \'' , "\x3f\xf3" ]
306307 ],
307- (PHP_VERSION_ID < 50606 ) ? [] : [
308- // preserving zero fractions is only supported as of PHP 5.6.6
309- ['1.0 ' , 1.0 ]
310- ],
311308 (SQLite3::version ()['versionNumber ' ] < 3023000 ) ? [] : [
312309 // boolean identifiers exist only as of SQLite 3.23.0 (2018-04-02)
313310 // @link https://www.sqlite.org/lang_expr.html#booleanexpr
@@ -345,25 +342,20 @@ public function testQueryValueInStatementResolvesWithResultWithTypeAndRunsUntilQ
345342
346343 public function provideDataWillBeReturnedWithType ()
347344 {
348- return array_merge (
349- [
350- [0 , 'INTEGER ' ],
351- [1 , 'INTEGER ' ],
352- [1.5 , 'REAL ' ],
353- [null , 'NULL ' ],
354- ['hello ' , 'TEXT ' ],
355- ['hellö ' , 'TEXT ' ],
356- ["hello \tworld \r\n" , 'TEXT ' ],
357- [utf8_decode ('hello wörld! ' ), 'BLOB ' ],
358- ["hello \x7fö " , 'BLOB ' ],
359- ["\x03\x02\x001 " , 'BLOB ' ],
360- ["a \000b " , 'BLOB ' ]
361- ],
362- (PHP_VERSION_ID < 50606 ) ? [] : [
363- // preserving zero fractions is only supported as of PHP 5.6.6
364- [1.0 , 'REAL ' ]
365- ]
366- );
345+ return [
346+ [0 , 'INTEGER ' ],
347+ [1 , 'INTEGER ' ],
348+ [1.5 , 'REAL ' ],
349+ [1.0 , 'REAL ' ],
350+ [null , 'NULL ' ],
351+ ['hello ' , 'TEXT ' ],
352+ ['hellö ' , 'TEXT ' ],
353+ ["hello \tworld \r\n" , 'TEXT ' ],
354+ [utf8_decode ('hello wörld! ' ), 'BLOB ' ],
355+ ["hello \x7fö " , 'BLOB ' ],
356+ ["\x03\x02\x001 " , 'BLOB ' ],
357+ ["a \000b " , 'BLOB ' ]
358+ ];
367359 }
368360
369361 /**
@@ -418,16 +410,10 @@ public function testQueryValuePlaceholderNamedResolvesWithResultWithExactTypeAnd
418410
419411 public function provideDataWillBeReturnedWithOtherType ()
420412 {
421- return array_merge (
422- [
423- [true , 1 ],
424- [false , 0 ],
425- ],
426- (PHP_VERSION_ID >= 50606 ) ? [] : [
427- // preserving zero fractions is supported as of PHP 5.6.6, otherwise cast to int
428- [1.0 , 1 ]
429- ]
430- );
413+ return [
414+ [true , 1 ],
415+ [false , 0 ],
416+ ];
431417 }
432418
433419 /**
0 commit comments