projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
parser: fix string handling
[m6w6/ext-psi]
/
tests
/
calc
/
calc001.phpt
1
--TEST--
2
calc
3
--INI--
4
psi.directory={PWD}/../../psi.d:{PWD}
5
--SKIPIF--
6
<?php
7
extension_loaded("psi") or die("skip need ext/psi");
8
?>
9
--FILE--
10
===TEST===
11
<?php
12
for ($i = 0; $i < 20; ++$i) {
13
$func = "test\\calc$i";
14
if (function_exists($func)) {
15
$res = $func();
16
if ($res === ["quot"=>1, "rem"=>0]) {
17
echo "yay-";
18
} else {
19
var_dump($res);
20
}
21
}
22
}
23
?>
24
25
===DONE===
26
--EXPECTREGEX--
27
===TEST===
28
(yay-)+
29
===DONE===