diff --git a/tests/functional/SecureShellExceptionCest.php b/tests/functional/SecureShellExceptionCest.php index 9bd1652..3aea12c 100644 --- a/tests/functional/SecureShellExceptionCest.php +++ b/tests/functional/SecureShellExceptionCest.php @@ -28,6 +28,20 @@ public function openConnectionAuthTypeError(FunctionalTester $I) }); } + /** + * @env nochecking + */ + public function openConnectionAuthError(FunctionalTester $I) + { + $I->expectException(ModuleException::class, function () use ($I) { + $I->openConnection('localhost', + 32768, + SecureShell::AUTH_PASSWORD, + 'root', + 'invalid'); + }); + } + /** * @env nochecking */