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::glob()
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->glob( '/.*txt/', $tmpdir.'/File_Find/dir/', 'perl' ) ;
14
$result1  = &$ff->glob( '/.*txt/', $tmpdir.'/File_Find/dir', 'perl' ) ;
15
$result2 = &File_Find::glob( '/.*txt/', $tmpdir.'/File_Find/dir/', 'perl' ) ;
16
$result3 = &File_Find::glob( '/.*txt/', '/nosuch/', 'perl' ) ;
17
 
18
print_r($result0);
19
print_r($result1);
20
print_r($result2);
21
print $result3->getMessage();
22
 
23
?>
24
--GET--
25
--POST--
26
--EXPECT--
27
Array
28
(
29
    [0] => 1.txt
30
    [1] => 2.txt
31
    [2] => txtdir
32
)
33
Array
34
(
35
    [0] => 1.txt
36
    [1] => 2.txt
37
    [2] => txtdir
38
)
39
Array
40
(
41
    [0] => 1.txt
42
    [1] => 2.txt
43
    [2] => txtdir
44
)
45
Cannot open directory /nosuch/
46