From b09370b13a2a11b2c158c64421a9d364c67ceb68 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 12 Jul 2015 11:24:20 +0100 Subject: [PATCH] Skip invalid windows tests --- tests/Monolog/Handler/StreamHandlerTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Monolog/Handler/StreamHandlerTest.php b/tests/Monolog/Handler/StreamHandlerTest.php index cb51b399..b1e22fb6 100644 --- a/tests/Monolog/Handler/StreamHandlerTest.php +++ b/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()); }