diff options
| author | Atsushi Matsuo <famlog@gmail.com> | 2024-08-29 06:16:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 23:16:04 +0200 |
| commit | c8f1853bfe09b608acf57936a0fe4c98b49c6379 (patch) | |
| tree | 4ea37bf24a30ae3dbf815bd25a06a904fb947e08 /tests | |
| parent | 2f781e2e655f1ccbc866f51974361f04e18d3005 (diff) | |
| download | smarty-c8f1853bfe09b608acf57936a0fe4c98b49c6379.tar.gz smarty-c8f1853bfe09b608acf57936a0fe4c98b49c6379.tar.bz2 smarty-c8f1853bfe09b608acf57936a0fe4c98b49c6379.zip | |
Modify NullCoalescingTest.php and TernaryTest.php to prevent test failure on Windows (#1059)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/UnitTests/TemplateSource/NullCoalescingTest.php | 2 | ||||
| -rw-r--r-- | 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 2432527a..c771ba33 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 95ce4b34..312ada96 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(); } |
