projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
travis: update
[m6w6/ext-psi]
/
tests
/
glob
/
glob002.phpt
1
--TEST--
2
glob
3
--INI--
4
psi.directory={PWD}/../../psi.d:{PWD}
5
--SKIPIF--
6
<?php
7
PHP_OS === "Linux" or die("skip - only for Linux");
8
?>
9
--FILE--
10
===TEST===
11
<?php
12
chdir(__DIR__);
13
$glob = ["gl_offs" => 5];
14
var_dump(psi\glob("*002.php*", psi\GLOB_DOOFFS, $glob));
15
var_dump($glob);
16
?>
17
===DONE===
18
--EXPECTF--
19
===TEST===
20
int(0)
21
array(4) {
22
["gl_pathc"]=>
23
int(2)
24
["gl_offs"]=>
25
int(5)
26
["gl_flags"]=>
27
int(%d)
28
["gl_pathv"]=>
29
array(7) {
30
[0]=>
31
string(0) ""
32
[1]=>
33
string(0) ""
34
[2]=>
35
string(0) ""
36
[3]=>
37
string(0) ""
38
[4]=>
39
string(0) ""
40
[5]=>
41
string(11) "glob002.php"
42
[6]=>
43
string(12) "glob002.phpt"
44
}
45
}
46
===DONE===