Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
File_Find::mapTreeMultiple()
3
--SKIPIF--
4
<?php
5
include(dirname(__FILE__).'/setup.php');
6
print $status;
7
?>
8
--FILE--
9
<?php
10
require_once(dirname(__FILE__).'/setup.php');
11
 
12
$ff = new File_Find();
13
$result0  = $ff->mapTreeMultiple('File_Find//dir/') ;
14
$result1  = $ff->mapTreeMultiple('File_Find/dir') ;
15
$result2 = File_Find::mapTreeMultiple('File_Find/dir') ;
16
 
17
print_r($result0);
18
print_r($result1);
19
print_r($result2);
20
 
21
?>
22
--GET--
23
--POST--
24
--EXPECT--
25
Array
26
(
27
    [0] => 1.txt
28
    [1] => 2.txt
29
    [dir2] => Array
30
        (
31
            [0] => 3.bak
32
            [1] => 3.txt
33
        )
34
 
35
    [dir3] => Array
36
        (
37
            [0] => 4.bak
38
            [1] => 4.txt
39
        )
40
 
41
    [txtdir] => Array
42
        (
43
            [0] => 5.txt
44
        )
45
 
46
)
47
Array
48
(
49
    [0] => 1.txt
50
    [1] => 2.txt
51
    [dir2] => Array
52
        (
53
            [0] => 3.bak
54
            [1] => 3.txt
55
        )
56
 
57
    [dir3] => Array
58
        (
59
            [0] => 4.bak
60
            [1] => 4.txt
61
        )
62
 
63
    [txtdir] => Array
64
        (
65
            [0] => 5.txt
66
        )
67
 
68
)
69
Array
70
(
71
    [0] => 1.txt
72
    [1] => 2.txt
73
    [dir2] => Array
74
        (
75
            [0] => 3.bak
76
            [1] => 3.txt
77
        )
78
 
79
    [dir3] => Array
80
        (
81
            [0] => 4.bak
82
            [1] => 4.txt
83
        )
84
 
85
    [txtdir] => Array
86
        (
87
            [0] => 5.txt
88
        )
89
 
90
)
91