File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222use PhpMyAdmin \Query \Utilities ;
2323use PhpMyAdmin \SqlParser \Context ;
2424use PhpMyAdmin \Utils \SessionCache ;
25+ use RuntimeException ;
2526
2627use function __ ;
2728use function array_column ;
@@ -2246,6 +2247,15 @@ public function getVersion(): int
22462247 return $ this ->versionInt ;
22472248 }
22482249
2250+ public function setVersion (int $ version ): void
2251+ {
2252+ if (! defined ('TESTSUITE ' )) {
2253+ throw new RuntimeException ('This method should only be executed in a testing environment. ' );
2254+ }
2255+
2256+ $ this ->versionInt = $ version ;
2257+ }
2258+
22492259 /**
22502260 * Server version
22512261 */
Original file line number Diff line number Diff line change 1582515825 <code>$title</code>
1582615826 </MixedArgument>
1582715827 <MixedArgumentTypeCoercion occurrences="1">
15828- <code>$this-> serverPrivileges->extractPrivInfo(null, true)</code>
15828+ <code>$serverPrivileges->extractPrivInfo(null, true)</code>
1582915829 </MixedArgumentTypeCoercion>
15830- <MixedAssignment occurrences="1">
15831- <code>$returned_userGroup</code>
15832- </MixedAssignment>
15833- <MixedMethodCall occurrences="19">
15830+ <MixedMethodCall occurrences="9">
1583415831 <code>getMessage</code>
1583515832 <code>getMessage</code>
1583615833 <code>getMessage</code>
1584015837 <code>getMessage</code>
1584115838 <code>getMessage</code>
1584215839 <code>getMessage</code>
15843- <code>method</code>
15844- <code>method</code>
15845- <code>method</code>
15846- <code>method</code>
15847- <code>method</code>
15848- <code>will</code>
15849- <code>will</code>
15850- <code>will</code>
15851- <code>will</code>
15852- <code>will</code>
1585315840 </MixedMethodCall>
15854- <UndefinedMethod occurrences="5">
15855- <code>expects</code>
15856- <code>expects</code>
15857- <code>expects</code>
15858- <code>expects</code>
15859- <code>expects</code>
15860- </UndefinedMethod>
1586115841 <UnusedVariable occurrences="4">
1586215842 <code>$password</code>
1586315843 <code>$routinename</code>
You can’t perform that action at this time.
0 commit comments