From 1bff2abab47a9f8dec5518d13a0e05c44e093c6c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 31 Mar 2017 10:08:26 +0200 Subject: 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. --- lib/plugins/authpdo/_test/mysql.test.php | 1 + lib/plugins/authpdo/_test/sqlite.test.php | 1 + 2 files changed, 2 insertions(+) (limited to 'lib/plugins/authpdo/_test') 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() { -- cgit v1.2.3