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
/
calc
/
calc001.phpt
1
--TEST--
2
calc
3
--INI--
4
psi.directory={PWD}/../../psi.d:{PWD}
5
--FILE--
6
===TEST===
7
<?php
8
for ($i = 0; $i < 20; ++$i) {
9
$func = "test\\calc$i";
10
if (function_exists($func)) {
11
$res = $func();
12
if ($res === ["quot"=>1, "rem"=>0]) {
13
echo "yay-";
14
} else {
15
var_dump($res);
16
}
17
}
18
}
19
?>
20
21
===DONE===
22
--EXPECTREGEX--
23
===TEST===
24
(yay-)+
25
===DONE===