0d14e585fd
In general, a test which gets its input piped in is not really interacting with a terminal like it normally would. Thus, letting it think it has the same terminal as the environment is incorrect. More specifically, hphpd uses Readline, which inspects the TERM env var and based on that and a stunning array of other options will attempt to initialize the terminal with extra control characters on first use. It would be tough to try to control for all of the different options and ensure they're all the same, and honestly testing Readline is not the objective of our tests anyway. Thus, I'm forcing TERM to 'dumb' when a test has input to ensure a) a simple terminal which requires no control characters and b) consistency no matter what environment is present when the tests are run.
48 linhas
940 B
Plaintext
48 linhas
940 B
Plaintext
Program %s/info1.php loaded. Type '[r]un' or '[c]ontinue' to go.
|
|
@
|
|
|
|
info array_key_exists
|
|
/**
|
|
* ( excerpt from http://php.net/manual/en/function.array_key_exists.php )
|
|
* array_key_exists() returns TRUE if the given key is set in the array. key can be any value possible for an array index.
|
|
*
|
|
* @key mixed Value to check.
|
|
* @search mixed An array with keys to check.
|
|
*
|
|
* @return bool Returns TRUE on success or FALSE on failure.
|
|
*/
|
|
function array_key_exists($key, $search);
|
|
|
|
info stdClass
|
|
// defined on line %d to %d of %s/systemlib.php
|
|
class stdClass {
|
|
}
|
|
|
|
run
|
|
Program %s/info1.php exited normally.
|
|
@
|
|
|
|
info myfunc
|
|
// defined on line 3 to 5 of %s/info1.php
|
|
function myfunc($a, $b);
|
|
|
|
info MyClass
|
|
// defined on line 7 to 11 of %s/info1.php
|
|
class MyClass {
|
|
// properties
|
|
public $pub;
|
|
protected $pro;
|
|
private $pri;
|
|
}
|
|
|
|
info MyClass::pub
|
|
public $pub;
|
|
|
|
info MyClass::pro
|
|
protected $pro;
|
|
|
|
info MyClass::pri
|
|
private $pri;
|
|
|
|
quit
|