blob: 2917982a1da3f30eab2efbbe17e32216a1defc2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<?php
/**
* Smarty PHPunit tests for templateExists method
*
* @author Uwe Tews
*/
/**
* class for templateExists tests
*
*
*
*
*/
class TemplateExistsTest extends PHPUnit_Smarty
{
public function setUp(): void
{
$this->setUpSmarty(__DIR__);
}
public function testInit()
{
$this->cleanDirs();
}
/**
* test $smarty->templateExists true
*/
public function testSmartyTemplateExists()
{
$this->assertTrue($this->smarty->templateExists('helloworld.tpl'));
}
/**
* test $smarty->templateExists false
*/
public function testSmartyTemplateNotExists()
{
$this->assertFalse($this->smarty->templateExists('notthere.tpl'));
}
}
|