Files

35 lines
585 B
PHP
Raw Permalink Normal View History

<?php
/**
* Smarty PHPunit tests of function calls
*
2023-08-08 00:04:14 +02:00
* @author Uwe Tews
*/
/**
* class for function tests
*
2023-08-08 00:04:14 +02:00
*
*
*
*/
class FunctionTest extends PHPUnit_Smarty
{
2021-10-13 12:15:17 +02:00
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
}
/**
* test unknown function error
*/
public function testUnknownFunction()
{
$this->smarty->enableSecurity();
2023-08-08 00:04:14 +02:00
$this->expectException(\Smarty\CompilerException::class);
$this->expectExceptionMessage('unknown modifier');
$this->smarty->fetch('eval:{unknown()}');
}
}