mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 04:37:38 +02:00
Skip invalid windows tests
This commit is contained in:
@@ -144,6 +144,9 @@ class StreamHandlerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testWriteNonExistingAndNotCreatablePath()
|
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 = new StreamHandler('/foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
|
||||||
$handler->handle($this->getRecord());
|
$handler->handle($this->getRecord());
|
||||||
}
|
}
|
||||||
@@ -156,6 +159,9 @@ class StreamHandlerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testWriteNonExistingAndNotCreatableFileResource()
|
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 = new StreamHandler('file:///foo/bar/'.rand(0, 10000).DIRECTORY_SEPARATOR.rand(0, 10000));
|
||||||
$handler->handle($this->getRecord());
|
$handler->handle($this->getRecord());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user