mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
N°8764 halt setup wizard at data issue - 2nd review
This commit is contained in:
@@ -701,11 +701,12 @@ abstract class ItopTestCase extends KernelTestCase
|
||||
|
||||
/**
|
||||
* Return a temporary file path. that will be cleaned up by tearDown()
|
||||
* @return string: temporary file path
|
||||
*
|
||||
* @return string: temporary file path: file prefix include phpunit test method name
|
||||
*/
|
||||
public function GetTemporaryFilePath(string $sPrefix = "test"): string
|
||||
public function GetTemporaryFilePath(): string
|
||||
{
|
||||
|
||||
$sPrefix = $this->getName(false);
|
||||
$sPath = tempnam(sys_get_temp_dir(), $sPrefix);
|
||||
$this->aFileToClean[] = $sPath;
|
||||
return $sPath;
|
||||
|
||||
Reference in New Issue
Block a user