Arquivos
hhvm/hphp/test/quick/debugger/eval1.php.in
T
Herman Venter 6adc95a975 Replicate debugger eval tests in test/quick/debugger. Take 2.
Ongoing migration of tests to the new infrastructure. The old tests stay in place until we have another way to test the client API.
2013-07-01 13:40:56 -07:00

45 linhas
777 B
Plaintext

run
print function_exists('test1')
@ function test1($x){error_log($x);return $x+1;}
print function_exists('test1')
@ $eval1=test1(4)
print $eval1
print class_exists('test2')
<?php
class test2 {
public $a;
private $b;
public function ab() {
return $this->a . ":" . $this->b;
}
public function callCls() {
$obj = new cls();
return $obj->meth($this);
}
private function seven() {
return 7;
}
}
?>
print class_exists('test2')
set bac off
@ $eval2 = new test2()
@ $eval2->a = 3
@ $eval2->b = 4
print $eval2->ab()
set bac on
@ $eval2->b = 4
print $eval2->ab()
break eval1.php:12
print $eval2->callCls()
break clear all
set bac off
@ $this->pub = 21
@ $this->pri = 22
next
@ $this->pub = $x->seven()
set bac on
@ $this->pub = $x->seven()
continue
quit