diff --git a/tests/ZendTest/Mail/Storage/MboxFolderTest.php b/tests/ZendTest/Mail/Storage/MboxFolderTest.php index 7fb035c3062..3cc7bbcea9e 100644 --- a/tests/ZendTest/Mail/Storage/MboxFolderTest.php +++ b/tests/ZendTest/Mail/Storage/MboxFolderTest.php @@ -310,6 +310,8 @@ public function testNotReadableFolder() if (!$check) { if (function_exists('posix_getuid') && posix_getuid() === 0) { $this->markTestSkipped('seems like you are root and we therefore cannot test the error handling'); + } elseif (!function_exists('posix_getuid')) { + $this->markTestSkipped('Can\t test if you\'re root and we therefore cannot test the error handling'); } $this->fail('no exception while loading invalid dir with subfolder not readable'); } diff --git a/tests/ZendTest/Mail/Storage/MboxTest.php b/tests/ZendTest/Mail/Storage/MboxTest.php index 7283356f042..dcdc07b176c 100644 --- a/tests/ZendTest/Mail/Storage/MboxTest.php +++ b/tests/ZendTest/Mail/Storage/MboxTest.php @@ -263,6 +263,8 @@ public function testSleepWakeRemoved() if (!$check) { if (function_exists('posix_getuid') && posix_getuid() === 0) { $this->markTestSkipped('seems like you are root and we therefore cannot test the error handling'); + } elseif (!function_exists('posix_getuid')) { + $this->markTestSkipped('Can\t test if you\'re root and we therefore cannot test the error handling'); } $this->fail('no exception while waking with non readable file'); }