projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
travis: update
[m6w6/ext-psi]
/
tests
/
glob
/
glob002.phpt
diff --git
a/tests/glob/glob002.phpt
b/tests/glob/glob002.phpt
index 17bad44b70f0dc4ec68c88d93f004d1993bbe576..5c575e16c17d7a875b4fbf84b2e928dd2ba919e6 100644
(file)
--- a/
tests/glob/glob002.phpt
+++ b/
tests/glob/glob002.phpt
@@
-4,15
+4,14
@@
glob
psi.directory={PWD}/../../psi.d:{PWD}
--SKIPIF--
<?php
psi.directory={PWD}/../../psi.d:{PWD}
--SKIPIF--
<?php
-extension_loaded("psi") or die("skip - need ext/psi");
PHP_OS === "Linux" or die("skip - only for Linux");
?>
--FILE--
===TEST===
<?php
chdir(__DIR__);
PHP_OS === "Linux" or die("skip - only for Linux");
?>
--FILE--
===TEST===
<?php
chdir(__DIR__);
-$glob = ["gl_offs" =>
3
];
-var_dump(psi\glob("*
.php{,t}", psi\GLOB_BRACE|
psi\GLOB_DOOFFS, $glob));
+$glob = ["gl_offs" =>
5
];
+var_dump(psi\glob("*
002.php*",
psi\GLOB_DOOFFS, $glob));
var_dump($glob);
?>
===DONE===
var_dump($glob);
?>
===DONE===
@@
-21,9
+20,9
@@
var_dump($glob);
int(0)
array(4) {
["gl_pathc"]=>
int(0)
array(4) {
["gl_pathc"]=>
- int(
4
)
+ int(
2
)
["gl_offs"]=>
["gl_offs"]=>
- int(
3
)
+ int(
5
)
["gl_flags"]=>
int(%d)
["gl_pathv"]=>
["gl_flags"]=>
int(%d)
["gl_pathv"]=>
@@
-35,13
+34,13
@@
array(4) {
[2]=>
string(0) ""
[3]=>
[2]=>
string(0) ""
[3]=>
- string(
11) "glob002.php
"
+ string(
0) "
"
[4]=>
[4]=>
- string(
12) "glob001.phpt
"
+ string(
0) "
"
[5]=>
[5]=>
- string(1
2) "glob002.phpt
"
+ string(1
1) "glob002.php
"
[6]=>
[6]=>
- string(12) "glob00
3
.phpt"
+ string(12) "glob00
2
.phpt"
}
}
===DONE===
}
}
===DONE===