File: AugmentTest.xml

package info (click to toggle)
phing 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,868 kB
  • sloc: php: 59,850; xml: 9,713; sql: 78; makefile: 39; sh: 14
file content (45 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download
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
44
45
<?xml version="1.0" encoding="UTF-8"?>
<project name="AugmentTest" default="test">
    <property name="tmp.dir" value="tmp/augment"/>
    <property name="input" value="${tmp.dir}/augment"/>

    <target name="setUp">
        <mkdir dir="${input}" />
        <touch>
            <filelist id="filelist" dir="${input}" files="foo,bar,baz" />
        </touch>
        <fileset id="input-fs" dir="${input}" />
    </target>

    <target name="tearDown">
        <delete dir="${input}"/>
    </target>

    <target name="testAugmentAttribute">
        <augment id="input-fs" excludes="foo" />
    </target>

    <target name="testAugmentElement">
        <augment id="input-fs">
            <filename name="bar" />
        </augment>
    </target>

    <target name="testNoref">
        <augment id="nosuchreference" />
    </target>

    <target name="testIdNotSet">
        <augment foo="bar" />
    </target>

    <target name="testIllegalAttribute">
        <augment id="input-fs" filesetwillmostlikelyneversupportthisattribute="blah" />
    </target>

    <target name="testIllegalElement">
        <augment id="input-fs">
            <filesetwillmostlikelyneversupportthiselement />
        </augment>
    </target>
</project>