File: PhpEvalTest.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 (51 lines) | stat: -rw-r--r-- 1,693 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
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<project name="PhpEvalTaskTest" default="test">
    <target name="test">
        <fail message="This build project must only be used in testing" />
    </target>
    <target name="testZeroParams">
        <php function="get_include_path" returnProperty="result" />
    </target>
    <target name="testOneScalarParam">
        <php function="trim" returnProperty="result">
            <param value="   test   " />
        </php>
    </target>
    <target name="testMultiScalarParams">
        <php function="trim" returnProperty="result">
            <param value="##**test**##" />
            <param value="#" />
        </php>
    </target>
    <target name="testArrayParam">
        <php function="implode" returnProperty="result">
            <param>
                <param value="Phing" />
                <param value=" " />
                <param value="3" />
            </param>
        </php>
    </target>
    <target name="testMixedParams">
        <php function="implode" returnProperty="result">
            <param value=" " />
            <param>
                <param value="Phing" />
                <param value="3" />
            </param>
        </php>
    </target>
    <target name="testStaticMethodWithMultiDimArrayParam">
        <php class="Phing\Test\Task\System\PhpEvalTaskTest"
             function="recursiveProcess" returnProperty="result">
            <param>
                <param value="a" />
                <param>
                    <param value="b" />
                    <param value="c" />
                </param>
                <param value="d" />
            </param>
        </php>
    </target>
</project>