diff options
| author | Simon Wisselink <s.wisselink@iwink.nl> | 2026-04-13 22:31:06 +0200 |
|---|---|---|
| committer | Simon Wisselink <s.wisselink@iwink.nl> | 2026-04-13 22:31:06 +0200 |
| commit | 3577fc7091f1beab0dddd881cb08fc24a2a3f741 (patch) | |
| tree | ae9ad498efb13077b1119c50cb5c79692c84fb13 | |
| parent | ff2ef3b0cb07fd584946254f145f0509a7685f58 (diff) | |
| download | smarty-3577fc7091f1beab0dddd881cb08fc24a2a3f741.tar.gz smarty-3577fc7091f1beab0dddd881cb08fc24a2a3f741.tar.bz2 smarty-3577fc7091f1beab0dddd881cb08fc24a2a3f741.zip | |
Re-activate unit tests for user literals.
| -rw-r--r-- | TODO.txt | 1 | ||||
| -rw-r--r-- | changelog/userliterals.md | 1 | ||||
| -rw-r--r-- | tests/UnitTests/Compiler/Delimiter/UserLiteralTest.php | 6 |
3 files changed, 2 insertions, 6 deletions
@@ -29,4 +29,3 @@ ## Unrelated / other - review (and avoid) use of 'clone' keyword -- what is 'user literal support', why are unit tests skipped? diff --git a/changelog/userliterals.md b/changelog/userliterals.md new file mode 100644 index 00000000..defc176e --- /dev/null +++ b/changelog/userliterals.md @@ -0,0 +1 @@ +- Re-activated unit tests for user literals, which were previously disabled due to a bug in refactoring to v5.
\ No newline at end of file diff --git a/tests/UnitTests/Compiler/Delimiter/UserLiteralTest.php b/tests/UnitTests/Compiler/Delimiter/UserLiteralTest.php index 23e0ed0c..70873a89 100644 --- a/tests/UnitTests/Compiler/Delimiter/UserLiteralTest.php +++ b/tests/UnitTests/Compiler/Delimiter/UserLiteralTest.php @@ -17,11 +17,7 @@ class UserliteralTest extends PHPUnit_Smarty { public function setUp(): void { - if (!property_exists('Smarty', 'literals')) { - $this->markTestSkipped('user literal support'); - } else { - $this->setUpSmarty(__DIR__); - } + $this->setUpSmarty(__DIR__); } |
