diff options
| author | Raimondas Rimkevičius <github@mekdrop.name> | 2022-09-27 13:03:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-27 12:03:34 +0200 |
| commit | 1b556c7077c57b94e2cec093a0877c9d4d571188 (patch) | |
| tree | 31cab7e615b37a49a7d31eca7e075e44f938025c /tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php | |
| parent | 4550fc03391bd120b4add41ad7934c4c59aa21e8 (diff) | |
| download | smarty-1b556c7077c57b94e2cec093a0877c9d4d571188.tar.gz smarty-1b556c7077c57b94e2cec093a0877c9d4d571188.tar.bz2 smarty-1b556c7077c57b94e2cec093a0877c9d4d571188.zip | |
Use __DIR__ instead of dirname(__FILE__) (#817)
Diffstat (limited to 'tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php')
| -rw-r--r-- | tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php index 70287c5d..b4a75439 100644 --- a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php +++ b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php @@ -22,7 +22,7 @@ class ConfigVarTest extends PHPUnit_Smarty */ public function setUp(): void { - $this->setUpSmarty(dirname(__FILE__)); + $this->setUpSmarty(__DIR__); } /** @@ -387,7 +387,7 @@ class ConfigVarTest extends PHPUnit_Smarty public function testConfigResourceDb4() { - $this->smarty->addPluginsDir(dirname(__FILE__) . "/PHPunitplugins/"); + $this->smarty->addPluginsDir(__DIR__ . "/PHPunitplugins/"); $this->smarty->configLoad('db4:foo.conf'); $this->assertEquals("bar", $this->smarty->fetch('foo.tpl')); } |
