diff --git a/tests/dibi/Connection.connect.phpt b/tests/dibi/Connection.connect.phpt index d0ac395c..2582558e 100644 --- a/tests/dibi/Connection.connect.phpt +++ b/tests/dibi/Connection.connect.phpt @@ -52,6 +52,17 @@ test(function () use ($config) { }); +test(function () use ($config) { + $conn = new Connection($config); + Assert::equal('hello', $conn->query('SELECT %s', 'hello')->fetchSingle()); + + $conn->disconnect(); + + $conn->connect(); + Assert::equal('hello', $conn->query('SELECT %s', 'hello')->fetchSingle()); +}); + + test(function () use ($config) { Assert::exception(function () use ($config) { new Connection($config + ['onConnect' => '']);