[Yaml] Skip parser test with root user
This commit is contained in:
parent
da1999856f
commit
34429797b3
@ -2099,6 +2099,10 @@ YAML;
|
|||||||
$this->markTestSkipped('chmod is not supported on Windows');
|
$this->markTestSkipped('chmod is not supported on Windows');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!getenv('USER') || 'root' === getenv('USER')) {
|
||||||
|
$this->markTestSkipped('This test will fail if run under superuser');
|
||||||
|
}
|
||||||
|
|
||||||
$file = __DIR__.'/Fixtures/not_readable.yml';
|
$file = __DIR__.'/Fixtures/not_readable.yml';
|
||||||
chmod($file, 0200);
|
chmod($file, 0200);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user