From 6d17e58380e897d298c4e73419c54bb1f9f562ca Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 30 Jun 2019 09:16:44 +0200 Subject: [PATCH] Add basic test for password drivers --- plugins/password/tests/Password.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plugins/password/tests/Password.php b/plugins/password/tests/Password.php index d59049fee..95cba4166 100644 --- a/plugins/password/tests/Password.php +++ b/plugins/password/tests/Password.php @@ -20,6 +20,20 @@ class Password_Plugin extends PHPUnit_Framework_TestCase $this->assertInstanceOf('rcube_plugin', $plugin); } + /** + * A dummy test testing PHP syntax on password drivers + */ + function test_all_drivers() + { + if ($files = glob(__DIR__ . '/../drivers/*.php')) { + foreach ($files as $file) { + if (preg_match('|/([a-z_]+)\.php$|', $file, $matches)) { + $this->load_driver($matches[1]); + } + } + } + } + /** * cpanel_webmail driver test */