Browse Source

MFT: devel: improve testing

git-svn-id: svn://svn.lighttpd.net/xcache/branches/3.2@1513 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.2
Xuefer 7 years ago
parent
commit
6fa5963e07
  1. 9
      devel/run
  2. 8
      devel/sample.cpp.php

9
devel/run

@ -358,7 +358,14 @@ run() {
;;
*)
hiecho "$@"
"$@" | tee output.php
case "${tracer[@]}" in
gdb*|val*)
"$@"
;;
*)
"$@" | tee output.php
;;
esac
;;
esac
# }}}

8
devel/sample.cpp.php

@ -164,6 +164,7 @@ abstract class ClassName
echo __METHOD__;
echo __FUNCTION__;
$this->method();
#if PHP_VERSION >= 500
try {
throw new _Exception();
@ -537,8 +538,9 @@ for (; $i < 10; ++$i) {
}
$array = array(
array('a' => 'b')
);
array('a' => 'b')
);
foreach ($array as $value) {
foreach ($value as $key => $value) {
echo $key . ' = ' . $value . "\n";
@ -620,10 +622,12 @@ declare (ticks=1) {
}
$a = true;
while ($a) {
declare (ticks=1) {
echo 2;
}
$a = false;
}

Loading…
Cancel
Save