[Finder] Fix tests on windows

This commit is contained in:
Jordi Boggiano 2013-04-25 14:12:10 +02:00
parent e8b07a0787
commit 08e95dbbf4

View File

@ -722,6 +722,10 @@ class FinderTest extends Iterator\RealIteratorTestCase
*/ */
public function testAccessDeniedException(Adapter\AdapterInterface $adapter) public function testAccessDeniedException(Adapter\AdapterInterface $adapter)
{ {
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
$this->markTestSkipped('chmod is not supported on windows');
}
$finder = $this->buildFinder($adapter); $finder = $this->buildFinder($adapter);
$finder->files()->in(self::$tmpDir); $finder->files()->in(self::$tmpDir);
@ -744,6 +748,10 @@ class FinderTest extends Iterator\RealIteratorTestCase
*/ */
public function testIgnoredAccessDeniedException(Adapter\AdapterInterface $adapter) public function testIgnoredAccessDeniedException(Adapter\AdapterInterface $adapter)
{ {
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
$this->markTestSkipped('chmod is not supported on windows');
}
$finder = $this->buildFinder($adapter); $finder = $this->buildFinder($adapter);
$finder->files()->ignoreUnreadableDirs()->in(self::$tmpDir); $finder->files()->ignoreUnreadableDirs()->in(self::$tmpDir);