Replicate debugger info tests in test/quick/debugger

Ongoing migration of tests to the new infrastructure. The old tests stay in place until we have another way to test the client API.
Esse commit está contido em:
Herman Venter
2013-06-25 13:50:13 -07:00
commit de Sara Golemon
commit 7b75527b3d
3 arquivos alterados com 69 adições e 0 exclusões
+11
Ver Arquivo
@@ -0,0 +1,11 @@
<?php
function myfunc($a, $b) {
error_log($a.$b);
}
class MyClass {
public $pub;
protected $pro;
private $pri;
}
+47
Ver Arquivo
@@ -0,0 +1,47 @@
Program %s/info1.php loaded. Type '[r]un' or '[c]ontinue' to go.
%S@
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
+11
Ver Arquivo
@@ -0,0 +1,11 @@
@
info array_key_exists
info stdClass
run
@
info myfunc
info MyClass
info MyClass::pub
info MyClass::pro
info MyClass::pri
quit