mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-20 01:19:21 +01:00
34 lines
710 B
PHP
34 lines
710 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()
|
||
|
|
{
|
||
|
|
$this->setUpSmarty(dirname(__FILE__));
|
||
|
|
}
|
||
|
|
|
||
|
|
public function testInit()
|
||
|
|
{
|
||
|
|
$this->cleanDirs();
|
||
|
|
}
|
||
|
|
|
||
|
|
public function testPluginChainedLoad()
|
||
|
|
{
|
||
|
|
$this->smarty->addPluginsDir(dirname(__FILE__) . "/PHPunitplugins/");
|
||
|
|
$this->assertContains('from chain3', $this->smarty->fetch('test_plugin_chained_load.tpl'));
|
||
|
|
}
|
||
|
|
}
|