Drop a unit tests bc we no longer support direct access to PHP-functinos such as sin()

This commit is contained in:
Simon Wisselink
2023-01-23 16:59:52 +01:00
parent 2cf658c9c3
commit c5f555eed4

View File

@@ -69,14 +69,6 @@ class MathTest extends PHPUnit_Smarty
$this->assertEquals($expected, $this->smarty->fetch($tpl)); $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() public function testFunctionSin()
{ {
$this->smarty->disableSecurity(); $this->smarty->disableSecurity();