From c8f1853bfe09b608acf57936a0fe4c98b49c6379 Mon Sep 17 00:00:00 2001 From: Atsushi Matsuo Date: Thu, 29 Aug 2024 06:16:04 +0900 Subject: [PATCH] Modify NullCoalescingTest.php and TernaryTest.php to prevent test failure on Windows (#1059) --- tests/UnitTests/TemplateSource/NullCoalescingTest.php | 2 +- tests/UnitTests/TemplateSource/TernaryTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/UnitTests/TemplateSource/NullCoalescingTest.php b/tests/UnitTests/TemplateSource/NullCoalescingTest.php index 2432527a7..c771ba339 100644 --- a/tests/UnitTests/TemplateSource/NullCoalescingTest.php +++ b/tests/UnitTests/TemplateSource/NullCoalescingTest.php @@ -4,7 +4,7 @@ class NullCoalescingTest extends PHPUnit_Smarty { public function setUp(): void { - $this->setUpSmarty('/tmp'); + $this->setUpSmarty(sys_get_temp_dir()); $this->cleanDirs(); } diff --git a/tests/UnitTests/TemplateSource/TernaryTest.php b/tests/UnitTests/TemplateSource/TernaryTest.php index 95ce4b34b..312ada96e 100644 --- a/tests/UnitTests/TemplateSource/TernaryTest.php +++ b/tests/UnitTests/TemplateSource/TernaryTest.php @@ -4,7 +4,7 @@ class TernaryTest extends PHPUnit_Smarty { public function setUp(): void { - $this->setUpSmarty('/tmp'); + $this->setUpSmarty(sys_get_temp_dir()); $this->cleanDirs(); }