@@ -54,35 +54,35 @@ public function provideBasicVariables(): array
5454 {
5555 return [
5656 '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 ) ],
5858 '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 ) ],
6060 '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 ) ],
6262 'assigning string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , 'read-committed ' , 'READ-COMMITTED ' ],
6363 'assigning string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , 'read-committed ' , 'READ-COMMITTED ' ],
6464 '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 ) ],
6666 '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 ) ],
6868 '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 ) ],
7070 'assigning wrapped string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , Value::str ('read-committed ' ), 'READ-COMMITTED ' ],
7171 'assigning wrapped string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , Value::str ('read-committed ' ), 'READ-COMMITTED ' ],
7272 '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 ) ],
7474 '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 ) ],
7676 '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 ) ],
7878 'replacing explicit string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , Replacer::str (function ($ v ) { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }), 'READ-COMMITTED ' ],
7979 'replacing explicit string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , Replacer::str (function ($ v ) { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }), 'READ-COMMITTED ' ],
8080 '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 ) ],
8282 '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 ) ],
8484 '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 ) ],
8686 'replacing implicit string (native) ' => ['tx_isolation ' , false , 'REPEATABLE-READ ' , function ($ v ): string { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }, 'READ-COMMITTED ' ],
8787 'replacing implicit string (emulated) ' => ['tx_isolation ' , true , 'REPEATABLE-READ ' , function ($ v ): string { return str_ireplace ('repeatable-read ' , 'read-committed ' , $ v ); }, 'READ-COMMITTED ' ],
8888 ];
@@ -165,7 +165,7 @@ public function testAssignmentPriorityOnLazilyResolvedConnection(): void
165165
166166 $ this ->assertPdoResolved ($ db ->getName ());
167167
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 );
169169
170170 $ this ->assertPdoResolved ($ db ->getName ());
171171 });
@@ -206,7 +206,7 @@ public function testAssignmentPriorityOnEagerlyResolvedConnection(): void
206206
207207 $ this ->assertPdoResolved ($ db ->getName ());
208208
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 );
210210
211211 $ this ->assertPdoResolved ($ db ->getName ());
212212 });
0 commit comments