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.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
index 8a23ba3d..41faf101 100644
--- a/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
+++ b/tests/UnitTests/ConfigFileTests/file/ConfigVarTest.php
@@ -403,7 +403,11 @@ class ConfigVarTest extends PHPUnit_Smarty
$this->assertEquals("", $this->smarty->fetch('foo.tpl'));
}
catch (Exception $e) {
- $this->assertEquals('Undefined variable: foo', $e->getMessage());
+ if (PHP_VERSION_ID >= 80000) {
+ $this->assertStringStartsWith('Undefined variable', $e->getMessage());
+ } else {
+ $this->assertStringStartsWith('Undefined variable', $e->getMessage());
+ }
}
}
}