fix symbol redirect detection
[m6w6/ext-psi] / tests / glob / glob003.phpt
1 --TEST--
2 glob
3 --INI--
4 psi.directory={PWD}/../../psi.d:{PWD}
5 --SKIPIF--
6 <?php
7 extension_loaded("psi") or die("skip - need ext/psi");
8 PHP_OS === "Darwin" or die("skip - only for OSX");
9 ?>
10 --FILE--
11 ===TEST===
12 <?php
13 chdir(__DIR__);
14 $glob = ["gl_offs" => 3];
15 var_dump(psi\glob("*.php{,t}", psi\GLOB_BRACE|psi\GLOB_DOOFFS, $glob));
16 var_dump($glob);
17 ?>
18 ===DONE===
19 --EXPECTF--
20 ===TEST===
21 int(0)
22 array(5) {
23 ["gl_matchc"]=>
24 int(4)
25 ["gl_pathc"]=>
26 int(4)
27 ["gl_offs"]=>
28 int(3)
29 ["gl_flags"]=>
30 int(386)
31 ["gl_pathv"]=>
32 array(7) {
33 [0]=>
34 string(0) ""
35 [1]=>
36 string(0) ""
37 [2]=>
38 string(0) ""
39 [3]=>
40 string(11) "glob003.php"
41 [4]=>
42 string(12) "glob001.phpt"
43 [5]=>
44 string(12) "glob002.phpt"
45 [6]=>
46 string(12) "glob003.phpt"
47 }
48 }
49 ===DONE===