mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-26 07:15:30 +02:00
Changed temporary path used in TemporaryFileTest
This commit is contained in:
@@ -8,14 +8,14 @@ class TemporaryFileTest extends TestCase
|
||||
{
|
||||
public function test_it_can_create_a_temporary_file(): void
|
||||
{
|
||||
$tempFile = new TemporaryFile(sys_get_temp_dir());
|
||||
$tempFile = new TemporaryFile($this->filePath('app/cache'));
|
||||
|
||||
$this->assertFileExists((string) $tempFile);
|
||||
}
|
||||
|
||||
public function test_it_can_write_to_and_read_from_a_temporary_file(): void
|
||||
{
|
||||
$tempFile = new TemporaryFile(sys_get_temp_dir());
|
||||
$tempFile = new TemporaryFile($this->filePath('app/cache'));
|
||||
|
||||
$this->assertFileIsReadable((string) $tempFile);
|
||||
$this->assertFileIsWritable((string) $tempFile);
|
||||
@@ -27,7 +27,7 @@ class TemporaryFileTest extends TestCase
|
||||
|
||||
public function test_it_removes_the_underlying_file_on_destruction(): void
|
||||
{
|
||||
$tempFile = new TemporaryFile(sys_get_temp_dir());
|
||||
$tempFile = new TemporaryFile($this->filePath('app/cache'));
|
||||
$filePath = (string) $tempFile;
|
||||
|
||||
unset($tempFile);
|
||||
|
Reference in New Issue
Block a user