Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2022-08-30 00:19:38 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2022-08-30 00:19:38 +0300
commitd3a267fdfc6aa4b113d0052c3340867776a75aab (patch)
tree45e01d9e7d8db47c8240feabc97d3a74a267e589 /test
parent183f1930841d8daf6b47b6f799e54e21a9b3f755 (diff)
Refactor DbiMysqli::connect to use Server value object
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r--test/classes/Stubs/DbiDummy.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/test/classes/Stubs/DbiDummy.php b/test/classes/Stubs/DbiDummy.php
index 6ea0e1777c..e4affd0759 100644
--- a/test/classes/Stubs/DbiDummy.php
+++ b/test/classes/Stubs/DbiDummy.php
@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace PhpMyAdmin\Tests\Stubs;
+use PhpMyAdmin\Config\Settings\Server;
use PhpMyAdmin\Dbal\DatabaseName;
use PhpMyAdmin\Dbal\DbiExtension;
use PhpMyAdmin\Dbal\ResultInterface;
@@ -94,19 +95,12 @@ class DbiDummy implements DbiExtension
}
/**
- * connects to the database server
+ * Connects to the database server.
*
- * @param string $user mysql user name
- * @param string $password mysql user password
- * @param array $server host/port/socket/persistent
- *
- * @return mixed false on error or a mysqli object on success
+ * @return object|bool A connection object on success or false on failure.
*/
- public function connect(
- $user,
- $password,
- array $server = []
- ) {
+ public function connect(string $user, string $password, Server $server)
+ {
return true;
}