File: SmartyTaskTest.xml

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (23 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<project name="smarty-test" default="invalid">
    <target name="invalid">
        <fail>This file should only be run via a testcase.</fail>
    </target>

    <property name="tmp.dir" value="tmp"/>
    <resolvepath propertyName="tmp.dir.resolved" file="${tmp.dir}"/>

    <target name="setup">
        <mkdir dir="${tmp.dir}"/>
    </target>

    <target name="clean">
        <delete dir="${tmp.dir}"/>
    </target>

    <target name="testRenderSimpleTemplate">
        <smarty controlTemplate="test.tpl" compilePath="${tmp.dir.resolved}" outputDirectory="${tmp.dir.resolved}" outputFile="test.txt" templatePath=".">
        </smarty>
    </target>

</project>