[Finder] Fix tests on windows
This commit is contained in:
parent
e8b07a0787
commit
08e95dbbf4
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user