From c5f555eed4042b0fcecb66cf531e06b1e7b1db66 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 23 Jan 2023 16:59:52 +0100 Subject: [PATCH] Drop a unit tests bc we no longer support direct access to PHP-functinos such as sin() --- .../UnitTests/TemplateSource/ValueTests/Math/MathTest.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php b/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php index ce8fada9..8d9f07f5 100644 --- a/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php +++ b/tests/UnitTests/TemplateSource/ValueTests/Math/MathTest.php @@ -69,14 +69,6 @@ class MathTest extends PHPUnit_Smarty $this->assertEquals($expected, $this->smarty->fetch($tpl)); } - public function testSyntaxSin() - { - $this->smarty->disableSecurity(); - $expected = sin(4) . ' -- ' . sin(4); - $tpl = $this->smarty->createTemplate('eval:{$x = 4}{$x|sin} -- {$y = sin($x)}{$y}'); - $this->assertEquals($expected, $this->smarty->fetch($tpl)); - } - public function testFunctionSin() { $this->smarty->disableSecurity();