Changed temporary path used in TemporaryFileTest

This commit is contained in:
Chris Kankiewicz
2020-02-15 23:07:23 -07:00
parent 6e19038f77
commit 273e984cf1

View File

@@ -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);