mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-19 17:09:39 +01:00
34 lines
708 B
PHP
34 lines
708 B
PHP
<?php
|
|
/**
|
|
* Smarty PHPunit tests chained loading of dependend pluglind
|
|
*
|
|
* @package PHPunit
|
|
* @author Rodney Rehm
|
|
*/
|
|
|
|
/**
|
|
* class for modifier tests
|
|
*
|
|
* @runTestsInSeparateProcess
|
|
* @preserveGlobalState disabled
|
|
* @backupStaticAttributes enabled
|
|
*/
|
|
class PluginChainedLoadTest extends PHPUnit_Smarty
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
$this->setUpSmarty(__DIR__);
|
|
}
|
|
|
|
public function testInit()
|
|
{
|
|
$this->cleanDirs();
|
|
}
|
|
|
|
public function testPluginChainedLoad()
|
|
{
|
|
$this->smarty->addPluginsDir(__DIR__ . "/PHPunitplugins/");
|
|
$this->assertStringContainsString('from chain3', $this->smarty->fetch('test_plugin_chained_load.tpl'));
|
|
}
|
|
}
|