We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1664d7 + e74a7f2 commit c97d850Copy full SHA for c97d850
src/Symfony/Component/Lock/Tests/Store/FlockStoreTest.php
@@ -56,11 +56,10 @@ public function testConstructWhenRepositoryIsNotWriteable()
56
57
public function testConstructWithSubdir()
58
{
59
- if (!getenv('USER') || 'root' === getenv('USER')) {
60
- $this->markTestSkipped('This test will fail if run under superuser');
61
- }
62
-
63
- new FlockStore(sys_get_temp_dir().'/sf-flock');
+ new FlockStore($dir = (sys_get_temp_dir().'/sf-flock'));
+ $this->assertDirectoryExists($dir);
+ // cleanup
+ @rmdir($dir);
64
}
65
66
public function testSaveSanitizeName()
0 commit comments