mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Drop a unit tests bc we no longer support direct access to PHP-functinos such as sin()
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user