This commit is contained in:
Jérémy Derussé 2021-01-05 10:38:08 +01:00
parent a0bbf53ebb
commit e74a7f2004
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2

View File

@ -56,11 +56,10 @@ class FlockStoreTest extends AbstractStoreTest
public function testConstructWithSubdir()
{
if (!getenv('USER') || 'root' === getenv('USER')) {
$this->markTestSkipped('This test will fail if run under superuser');
}
new FlockStore(sys_get_temp_dir().'/sf-flock');
new FlockStore($dir = (sys_get_temp_dir().'/sf-flock'));
$this->assertDirectoryExists($dir);
// cleanup
@rmdir($dir);
}
public function testSaveSanitizeName()