@@ -54,35 +54,35 @@ public function provideBasicVariables(): array
54
54
{
55
55
return [
56
56
'assigning float (native) ' => ['long_query_time ' , false , 10.0 , 15.0 , 15.0 ],
57
- 'assigning float (emulated) ' => ['long_query_time ' , true , '10.000000 ' , 15.0 , '15.000000 ' ],
57
+ 'assigning float (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), 15.0 , $ this -> v81 ( '15.000000 ' , 15.0 ) ],
58
58
'assigning integer (native) ' => ['long_query_time ' , false , 10.0 , 15 , 15.0 ],
59
- 'assigning integer (emulated) ' => ['long_query_time ' , true , '10.000000 ' , 15 , '15.000000 ' ],
59
+ 'assigning integer (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), 15 , $ this -> v81 ( '15.000000 ' , 15.0 ) ],
60
60
'assigning boolean (native) ' => ['foreign_key_checks ' , false , 1 , false , 0 ],
61
- 'assigning boolean (emulated) ' => ['foreign_key_checks ' , true , '1 ' , false , '0 ' ],
61
+ 'assigning boolean (emulated) ' => ['foreign_key_checks ' , true , $ this -> v81 ( '1 ' , 1 ), false , $ this -> v81 ( '0 ' , 0 ) ],
62
62
'assigning string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , 'read-committed ' , 'READ-COMMITTED ' ],
63
63
'assigning string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , 'read-committed ' , 'READ-COMMITTED ' ],
64
64
'assigning wrapped float (native) ' => ['long_query_time ' , false , 10.0 , Value::float (15.0 ), 15.0 ],
65
- 'assigning wrapped float (emulated) ' => ['long_query_time ' , true , '10.000000 ' , Value::float (15.0 ), '15.000000 ' ],
65
+ 'assigning wrapped float (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), Value::float (15.0 ), $ this -> v81 ( '15.000000 ' , 15.0 ) ],
66
66
'assigning wrapped integer (native) ' => ['long_query_time ' , false , 10.0 , Value::int (15 ), 15.0 ],
67
- 'assigning wrapped integer (emulated) ' => ['long_query_time ' , true , '10.000000 ' , Value::int (15 ), '15.000000 ' ],
67
+ 'assigning wrapped integer (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), Value::int (15 ), $ this -> v81 ( '15.000000 ' , 15.0 ) ],
68
68
'assigning wrapped boolean (native) ' => ['foreign_key_checks ' , false , 1 , Value::bool (false ), 0 ],
69
- 'assigning wrapped boolean (emulated) ' => ['foreign_key_checks ' , true , '1 ' , Value::bool (false ), '0 ' ],
69
+ 'assigning wrapped boolean (emulated) ' => ['foreign_key_checks ' , true , $ this -> v81 ( '1 ' , 1 ), Value::bool (false ), $ this -> v81 ( '0 ' , 0 ) ],
70
70
'assigning wrapped string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , Value::str ('read-committed ' ), 'READ-COMMITTED ' ],
71
71
'assigning wrapped string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , Value::str ('read-committed ' ), 'READ-COMMITTED ' ],
72
72
'replacing explicit float (native) ' => ['long_query_time ' , false , 10.0 , Replacer::float (function ($ v ) { return $ v + 5.0 ; }), 15.0 ],
73
- 'replacing explicit float (emulated) ' => ['long_query_time ' , true , '10.000000 ' , Replacer::float (function ($ v ) { return $ v + 5.0 ; }), '15.000000 ' ],
73
+ 'replacing explicit float (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), Replacer::float (function ($ v ) { return $ v + 5.0 ; }), $ this -> v81 ( '15.000000 ' , 15.0 ) ],
74
74
'replacing explicit integer (native) ' => ['long_query_time ' , false , 10.0 , Replacer::int (function ($ v ) { return $ v + 5 ; }), 15.0 ],
75
- 'replacing explicit integer (emulated) ' => ['long_query_time ' , true , '10.000000 ' , Replacer::int (function ($ v ) { return $ v + 5 ; }), '15.000000 ' ],
75
+ 'replacing explicit integer (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), Replacer::int (function ($ v ) { return $ v + 5 ; }), $ this -> v81 ( '15.000000 ' , 15.0 ) ],
76
76
'replacing explicit boolean (native) ' => ['foreign_key_checks ' , false , 1 , Replacer::bool (function ($ v ) { return !$ v ; }), 0 ],
77
- 'replacing explicit boolean (emulated) ' => ['foreign_key_checks ' , true , '1 ' , Replacer::bool (function ($ v ) { return !$ v ; }), '0 ' ],
77
+ 'replacing explicit boolean (emulated) ' => ['foreign_key_checks ' , true , $ this -> v81 ( '1 ' , 1 ), Replacer::bool (function ($ v ) { return !$ v ; }), $ this -> v81 ( '0 ' , 0 ) ],
78
78
'replacing explicit string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , Replacer::str (function ($ v ) { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }), 'READ-COMMITTED ' ],
79
79
'replacing explicit string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , Replacer::str (function ($ v ) { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }), 'READ-COMMITTED ' ],
80
80
'replacing implicit float (native) ' => ['long_query_time ' , false , 10.0 , function ($ v ): float { return $ v + 5.0 ; }, 15.0 ],
81
- 'replacing implicit float (emulated) ' => ['long_query_time ' , true , '10.000000 ' , function ($ v ): float { return $ v + 5.0 ; }, '15.000000 ' ],
81
+ 'replacing implicit float (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), function ($ v ): float { return $ v + 5.0 ; }, $ this -> v81 ( '15.000000 ' , 15.0 ) ],
82
82
'replacing implicit integer (native) ' => ['long_query_time ' , false , 10.0 , function ($ v ): int { return $ v + 5 ; }, 15.0 ],
83
- 'replacing implicit integer (emulated) ' => ['long_query_time ' , true , '10.000000 ' , function ($ v ): int { return $ v + 5 ; }, '15.000000 ' ],
83
+ 'replacing implicit integer (emulated) ' => ['long_query_time ' , true , $ this -> v81 ( '10.000000 ' , 10.0 ), function ($ v ): int { return $ v + 5 ; }, $ this -> v81 ( '15.000000 ' , 15.0 ) ],
84
84
'replacing implicit boolean (native) ' => ['foreign_key_checks ' , false , 1 , function ($ v ): bool { return !$ v ; }, 0 ],
85
- 'replacing implicit boolean (emulated) ' => ['foreign_key_checks ' , true , '1 ' , function ($ v ): bool { return !$ v ; }, '0 ' ],
85
+ 'replacing implicit boolean (emulated) ' => ['foreign_key_checks ' , true , $ this -> v81 ( '1 ' , 1 ), function ($ v ): bool { return !$ v ; }, $ this -> v81 ( '0 ' , 0 ) ],
86
86
'replacing implicit string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , function ($ v ): string { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }, 'READ-COMMITTED ' ],
87
87
'replacing implicit string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , function ($ v ): string { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }, 'READ-COMMITTED ' ],
88
88
];
@@ -165,7 +165,7 @@ public function testAssignmentPriorityOnLazilyResolvedConnection(): void
165
165
166
166
$ this ->assertPdoResolved ($ db ->getName ());
167
167
168
- $ this ->assertSame ('13.000000 ' , $ db ->selectOne ('select @@long_query_time as value ' )->value );
168
+ $ this ->assertSame ($ this -> v81 ( '13.000000 ' , 13.0 ) , $ db ->selectOne ('select @@long_query_time as value ' )->value );
169
169
170
170
$ this ->assertPdoResolved ($ db ->getName ());
171
171
});
@@ -206,7 +206,7 @@ public function testAssignmentPriorityOnEagerlyResolvedConnection(): void
206
206
207
207
$ this ->assertPdoResolved ($ db ->getName ());
208
208
209
- $ this ->assertSame ('13.000000 ' , $ db ->selectOne ('select @@long_query_time as value ' )->value );
209
+ $ this ->assertSame ($ this -> v81 ( '13.000000 ' , 13.0 ) , $ db ->selectOne ('select @@long_query_time as value ' )->value );
210
210
211
211
$ this ->assertPdoResolved ($ db ->getName ());
212
212
});
0 commit comments