summaryrefslogtreecommitdiff
path: root/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php')
-rw-r--r--tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
index 41faf101..70287c5d 100644
--- a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
+++ b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
@@ -20,7 +20,7 @@ class ConfigVarTest extends PHPUnit_Smarty
* This method is called before a test is executed.
*
*/
- public function setUp()
+ public function setUp(): void
{
$this->setUpSmarty(dirname(__FILE__));
}
@@ -403,11 +403,7 @@ class ConfigVarTest extends PHPUnit_Smarty
$this->assertEquals("", $this->smarty->fetch('foo.tpl'));
}
catch (Exception $e) {
- if (PHP_VERSION_ID >= 80000) {
- $this->assertStringStartsWith('Undefined variable', $e->getMessage());
- } else {
- $this->assertStringStartsWith('Undefined variable', $e->getMessage());
- }
+ $this->assertStringStartsWith('Undefined variable', $e->getMessage());
}
}
}