فهرست منبع

Skip invalid windows tests

Jordi Boggiano 10 سال پیش
والد
کامیت
b09370b13a
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      tests/Monolog/Handler/StreamHandlerTest.php

+ 6 - 0
tests/Monolog/Handler/StreamHandlerTest.php

@@ -144,6 +144,9 @@ class StreamHandlerTest extends TestCase
      */
     public function testWriteNonExistingAndNotCreatablePath()
     {
+        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
+            $this->markTestSkipped('Permissions checks can not run on windows');
+        }
         $handler = new StreamHandler('/foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
         $handler->handle($this->getRecord());
     }
@@ -156,6 +159,9 @@ class StreamHandlerTest extends TestCase
      */
     public function testWriteNonExistingAndNotCreatableFileResource()
     {
+        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
+            $this->markTestSkipped('Permissions checks can not run on windows');
+        }
         $handler = new StreamHandler('file:///foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
         $handler->handle($this->getRecord());
     }