php-src/sapi/phpdbg/tests/commands/0102_print.test
Nikita Popov a1ef8b418d Improve phpdbg opcode dump
Don't show <unused>, just don't display anything instead.

Dump nums used in op1/op2/result, e.g. for SEND, RECV etc.

Split the switch into three parts, one for each operand.
2015-05-24 20:29:57 +02:00

27 lines
882 B
Text

#################################################
# name: print
# purpose: test print commands
# expect: TEST::FORMAT
# options: -rr
#################################################
#[User Class: test (3 methods)]
#L%d-%d test::testMethod() %s - 0x%s + 1 ops
# L%d #0 RETURN null
#L%d-%d test::testPrivateMethod() %s - 0x%s + 1 ops
# L%d #0 RETURN null
#L%d-%d test::testProtectedMethod() %s - 0x%s + 1 ops
# L%d #0 RETURN null
#[User Method testMethod (1 ops)]
#L%d-%d test::testMethod() %s - 0x%s + 1 ops
# L%d #0 RETURN null
#################################################
<:
class test {
public function testMethod(){}
private function testPrivateMethod(){}
protected function testProtectedMethod(){}
}
:>
print class test
print method test::testMethod
q