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(); }