Arquivos
hhvm/hphp/test/quick/debugger/flow_multistep.php.expectf
T
Mike Magruder 0d14e585fd Change TERM when running tests with input
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.
2013-07-02 11:46:21 -07:00

244 linhas
4.4 KiB
Plaintext

Program %s/flow_multistep.php loaded. Type '[r]un' or '[c]ontinue' to go.
break flow_multistep.php:58
Breakpoint 1 set on line 58 of flow_multistep.php
But wont break until file flow_multistep.php has been loaded.
run
C1 oh hai
C2 oh hai
C2 oh hai
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
object(C1)#1 (1) {
["x":"C1":private]=>
int(0)
}
Breakpoint 1 reached at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
step 8
Break at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
continue
int(46)
C1 destructor!
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
Program %s/flow_multistep.php exited normally.
run
C1 oh hai
C2 oh hai
C2 oh hai
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
object(C1)#3 (1) {
["x":"C1":private]=>
int(0)
}
Breakpoint 1 reached at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
step 4
Break at d() on line 17 of %s/flow_multistep.php
16 function d($a) {
17 return $a + 1;
18 }
step 4
Break at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
continue
int(46)
C1 destructor!
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
Program %s/flow_multistep.php exited normally.
run
C1 oh hai
C2 oh hai
C2 oh hai
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
object(C1)#5 (1) {
["x":"C1":private]=>
int(0)
}
Breakpoint 1 reached at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
step 4
Break at d() on line 17 of %s/flow_multistep.php
16 function d($a) {
17 return $a + 1;
18 }
next 4
Break at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
continue
int(46)
C1 destructor!
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
Program %s/flow_multistep.php exited normally.
run
C1 oh hai
C2 oh hai
C2 oh hai
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
object(C1)#7 (1) {
["x":"C1":private]=>
int(0)
}
Breakpoint 1 reached at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
step 4
Break at d() on line 17 of %s/flow_multistep.php
16 function d($a) {
17 return $a + 1;
18 }
out 4
Break at main() on line 58 of %s/flow_multistep.php
57 var_dump($d);
58 var_dump(a(42));
59 }
continue
int(46)
C1 destructor!
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
Program %s/flow_multistep.php exited normally.
break clear all
All breakpoints are cleared.
break flow_multistep.php:54
Breakpoint 1 set on line 54 of flow_multistep.php
run
C1 oh hai
C2 oh hai
Breakpoint 1 reached at main() on line 54 of %s/flow_multistep.php
53 $c2 = new C2(5);
54 $c2 = new C2(6);
55 $d = $c1;
break clear all
All breakpoints are cleared.
step 10
C2 oh hai
C2 destructor
C1 oh hai
Break at C1::__destruct() on line 30 of %s/flow_multistep.php
29 public function __destruct() {
30 echo "C1 destructor!\n";
31 }
out 2
C1 destructor!
C2 destructor done
Break at main() on line 54 of %s/flow_multistep.php
53 $c2 = new C2(5);
54 $c2 = new C2(6);
55 $d = $c1;
out
object(C1)#9 (1) {
["x":"C1":private]=>
int(0)
}
int(46)
C1 destructor!
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
Break on line 61 of %s/flow_multistep.php
60
61 main();
62
continue
Program %s/flow_multistep.php exited normally.
break flow_multistep.php:54
Breakpoint 1 set on line 54 of flow_multistep.php
run
C1 oh hai
C2 oh hai
Breakpoint 1 reached at main() on line 54 of %s/flow_multistep.php
53 $c2 = new C2(5);
54 $c2 = new C2(6);
55 $d = $c1;
break clear all
All breakpoints are cleared.
step 10
C2 oh hai
C2 destructor
C1 oh hai
Break at C1::__destruct() on line 30 of %s/flow_multistep.php
29 public function __destruct() {
30 echo "C1 destructor!\n";
31 }
next 3
C1 destructor!
C2 destructor done
Break at main() on line 54 of %s/flow_multistep.php
53 $c2 = new C2(5);
54 $c2 = new C2(6);
55 $d = $c1;
next
Break at main() on line 55 of %s/flow_multistep.php
54 $c2 = new C2(6);
55 $d = $c1;
56 $c1 = null;
continue
object(C1)#11 (1) {
["x":"C1":private]=>
int(0)
}
int(46)
C1 destructor!
C2 destructor
C1 oh hai
C1 destructor!
C2 destructor done
Program %s/flow_multistep.php exited normally.
quit