diff options
author | Andreas Gohr <andi@splitbrain.org> | 2017-03-31 10:08:26 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2017-03-31 10:08:26 +0200 |
commit | 1bff2abab47a9f8dec5518d13a0e05c44e093c6c (patch) | |
tree | 74ba9cb28874d4016fb2d401bcad6d653dd876fc /lib/plugins/authpdo/_test | |
parent | bad6fc0d88e69349393c3950ca25e5dd8ce34cd2 (diff) | |
download | dokuwiki-1bff2abab47a9f8dec5518d13a0e05c44e093c6c.tar.gz dokuwiki-1bff2abab47a9f8dec5518d13a0e05c44e093c6c.zip |
mark some tests as non-risky
Those tests either just check that an exception is NOT thrown or are
there to check dependencies for other tests. Newer phpunits mark all
tests as risky that have no assertion.
Diffstat (limited to 'lib/plugins/authpdo/_test')
-rw-r--r-- | lib/plugins/authpdo/_test/mysql.test.php | 1 | ||||
-rw-r--r-- | lib/plugins/authpdo/_test/sqlite.test.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/plugins/authpdo/_test/mysql.test.php b/lib/plugins/authpdo/_test/mysql.test.php index ed86c81f6..8cd14189b 100644 --- a/lib/plugins/authpdo/_test/mysql.test.php +++ b/lib/plugins/authpdo/_test/mysql.test.php @@ -52,6 +52,7 @@ class mysql_plugin_authpdo_test extends DokuWikiTest { if(!in_array($this->driver, pdo_drivers())) { $this->markTestSkipped("Skipped {$this->driver} tests. Missing pdo_{$this->driver} extension"); } + $this->assertTrue(true); // avoid being marked as risky for having no assertion } /** diff --git a/lib/plugins/authpdo/_test/sqlite.test.php b/lib/plugins/authpdo/_test/sqlite.test.php index e532567c1..35b612604 100644 --- a/lib/plugins/authpdo/_test/sqlite.test.php +++ b/lib/plugins/authpdo/_test/sqlite.test.php @@ -33,6 +33,7 @@ class sqlite_plugin_authpdo_test extends DokuWikiTest { if(!class_exists('PDO') || !in_array('sqlite',PDO::getAvailableDrivers())) { $this->markTestSkipped('skipping all authpdo tests for sqlite. Need PDO_sqlite extension'); } + $this->assertTrue(true); // avoid being marked as risky for having no assertion } public function setUp() { |