diff --git a/hphp/test/quick/debugger/break1.php b/hphp/test/quick/debugger/break1.php index 2c7e8c4a0..97f6fa98f 100644 --- a/hphp/test/quick/debugger/break1.php +++ b/hphp/test/quick/debugger/break1.php @@ -21,4 +21,7 @@ class cls { } } +class derived extends cls { +} + error_log('break1.php loaded'); diff --git a/hphp/test/quick/debugger/break1.php.expectf b/hphp/test/quick/debugger/break1.php.expectf index 7773cf40f..aa6da4e4c 100644 --- a/hphp/test/quick/debugger/break1.php.expectf +++ b/hphp/test/quick/debugger/break1.php.expectf @@ -95,4 +95,19 @@ Breakpoint 1 set upon entering noSuchFunction() But wont break until function noSuchFunction has been loaded. break list 1 ALWAYS upon entering noSuchFunction() (unbound) +break clear all +All breakpoints are cleared. +break derived::pubObj() +Breakpoint 1 set upon entering derived::pubObj() +@ $break6 = new derived() + +@ $break6->pubObj('test_break6') +Breakpoint 1 reached at cls::pubObj() on line 12 of %s/break1.php + 11 public function pubObj($x) { + 12 error_log("pubObj:".$x); + 13 } + +continue +pubObj:test_break6 + quit diff --git a/hphp/test/quick/debugger/break1.php.in b/hphp/test/quick/debugger/break1.php.in index 357f30473..453c3d079 100644 --- a/hphp/test/quick/debugger/break1.php.in +++ b/hphp/test/quick/debugger/break1.php.in @@ -31,4 +31,9 @@ break cls::nosuchMethod() break list break noSuchFunction() break list +break clear all +break derived::pubObj() +@ $break6 = new derived() +@ $break6->pubObj('test_break6') +continue quit