summaryrefslogtreecommitdiff
path: root/tests/UnitTests/SmartyMethodsTests/TemplateExist/TemplateExistsTest.php
blob: da5bbb6bbf35d540c8a2fb2dc0afca25f5a98120 (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
<?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__);
    }


    /**
     * 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'));
    }
}