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