projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
num_exp: RPN calculator
[m6w6/ext-psi]
/
tests
/
glob
/
glob002.phpt
diff --git
a/tests/glob/glob002.phpt
b/tests/glob/glob002.phpt
index 530165af1d21b3a55cd6547bd8d8c385e4feb120..704386fdee621cda979275cda00a8d4e975e467f 100644
(file)
--- a/
tests/glob/glob002.phpt
+++ b/
tests/glob/glob002.phpt
@@
-5,17
+5,43
@@
psi.directory={PWD}/../../psi.d:{PWD}
--SKIPIF--
<?php
extension_loaded("psi") or die("skip - need ext/psi");
--SKIPIF--
<?php
extension_loaded("psi") or die("skip - need ext/psi");
+PHP_OS === "Linux" or die("skip - only for Linux");
?>
--FILE--
===TEST===
?>
--FILE--
===TEST===
-<?php
+<?php
chdir(__DIR__);
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===
--EXPECTF--
===TEST===
int(0)
var_dump($glob);
?>
===DONE===
--EXPECTF--
===TEST===
int(0)
-===DONE===
\ No newline at end of file
+array(4) {
+ ["gl_pathc"]=>
+ int(2)
+ ["gl_offs"]=>
+ int(5)
+ ["gl_flags"]=>
+ int(%d)
+ ["gl_pathv"]=>
+ array(7) {
+ [0]=>
+ string(0) ""
+ [1]=>
+ string(0) ""
+ [2]=>
+ string(0) ""
+ [3]=>
+ string(0) ""
+ [4]=>
+ string(0) ""
+ [5]=>
+ string(11) "glob002.php"
+ [6]=>
+ string(12) "glob002.phpt"
+ }
+}
+===DONE===