mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Use php temp path by default; "$this" should be "self"; ignore dev files
This commit is contained in:
@@ -11,7 +11,9 @@ class InterfaceTest extends WebTestCase
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
if (getenv('TMP')) {
|
||||
if(sys_get_temp_dir()) {
|
||||
self::$tmpdir = sys_get_temp_dir();
|
||||
} elseif (getenv('TMP')) {
|
||||
self::$tmpdir = getenv('TMP');
|
||||
} elseif (getenv('TMPDIR')) {
|
||||
self::$tmpdir = getenv('TMPDIR');
|
||||
@@ -25,7 +27,7 @@ class InterfaceTest extends WebTestCase
|
||||
$fs->mkdir(self::$tmpdir);
|
||||
|
||||
if (!is_writable(self::$tmpdir)) {
|
||||
$this->markTestSkipped('There are no write permissions in order to create test repositories.');
|
||||
self::markTestSkipped('There are no write permissions in order to create test repositories.');
|
||||
}
|
||||
|
||||
$options['path'] = getenv('GIT_CLIENT') ?: '/usr/bin/git';
|
||||
|
||||
Reference in New Issue
Block a user