浏览代码

[HttpFoundation] Fixed test breaking on windows

Jordi Boggiano 14 年之前
父节点
当前提交
30a8f4fd42
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/Symfony/Tests/Component/HttpFoundation/File/MimeType/MimeTypeTest.php

+ 3 - 0
tests/Symfony/Tests/Component/HttpFoundation/File/MimeType/MimeTypeTest.php

@@ -59,6 +59,9 @@ class MimeTypeTest extends \PHPUnit_Framework_TestCase
 
     public function testGuessWithNonReadablePath()
     {
+        if (strstr(PHP_OS, 'WIN')) {
+            $this->markTestSkipped('Can not verify chmod operations on Windows');
+        }
         $path = __DIR__.'/../Fixtures/to_delete';
         touch($path);
         chmod($path, 0333);