From 2ba676793c566450417f4d9fa28c1fdf95d60161 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 12 May 2017 19:36:28 +0200 Subject: [PATCH] avoid dependency tests being marked as risky --- _test/tests/inc/io_readfile.test.php | 4 ++++ _test/tests/inc/io_replaceinfile.test.php | 4 ++++ _test/tests/inc/io_savefile.test.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/_test/tests/inc/io_readfile.test.php b/_test/tests/inc/io_readfile.test.php index 43bb7f80c..b11bae1cb 100644 --- a/_test/tests/inc/io_readfile.test.php +++ b/_test/tests/inc/io_readfile.test.php @@ -8,7 +8,9 @@ class io_readfile_test extends DokuWikiTest { public function test_ext_zlib() { if (!DOKU_HAS_GZIP) { $this->markTestSkipped('skipping all zlib tests. Need zlib extension'); + return; } + $this->assertTrue(true); } /* @@ -17,7 +19,9 @@ class io_readfile_test extends DokuWikiTest { public function test_ext_bz2() { if (!DOKU_HAS_BZIP) { $this->markTestSkipped('skipping all bzip2 tests. Need bz2 extension'); + return; } + $this->assertTrue(true); } function test_plain(){ diff --git a/_test/tests/inc/io_replaceinfile.test.php b/_test/tests/inc/io_replaceinfile.test.php index 58a29d86b..3fb81b256 100644 --- a/_test/tests/inc/io_replaceinfile.test.php +++ b/_test/tests/inc/io_replaceinfile.test.php @@ -10,7 +10,9 @@ class io_replaceinfile_test extends DokuWikiTest { public function test_ext_zlib() { if (!DOKU_HAS_GZIP) { $this->markTestSkipped('skipping all zlib tests. Need zlib extension'); + return; } + $this->assertTrue(true); } /* @@ -19,7 +21,9 @@ class io_replaceinfile_test extends DokuWikiTest { public function test_ext_bz2() { if (!DOKU_HAS_BZIP) { $this->markTestSkipped('skipping all bzip2 tests. Need bz2 extension'); + return; } + $this->assertTrue(true); } function _write($file){ diff --git a/_test/tests/inc/io_savefile.test.php b/_test/tests/inc/io_savefile.test.php index 5f387b8a1..0dfb551cc 100644 --- a/_test/tests/inc/io_savefile.test.php +++ b/_test/tests/inc/io_savefile.test.php @@ -8,7 +8,9 @@ class io_savefile_test extends DokuWikiTest { public function test_ext_zlib() { if (!DOKU_HAS_GZIP) { $this->markTestSkipped('skipping all zlib tests. Need zlib extension'); + return; } + $this->assertTrue(true); } /* @@ -17,7 +19,9 @@ class io_savefile_test extends DokuWikiTest { public function test_ext_bz2() { if (!DOKU_HAS_BZIP) { $this->markTestSkipped('skipping all bzip2 tests. Need bz2 extension'); + return; } + $this->assertTrue(true); } function _write($file){ -- GitLab