@@ -119,7 +119,6 @@ function testOutput() {
119
119
$ this ->assertEqual ($ result [0 ]['error ' ], 'Notice ' );
120
120
$ this ->assertPattern ('/Undefined variable\:\s+out/ ' , $ result [0 ]['description ' ]);
121
121
$ this ->assertPattern ('/DebuggerTest::testOutput/i ' , $ result [0 ]['trace ' ]);
122
- $ this ->assertPattern ('/SimpleInvoker::invoke/i ' , $ result [0 ]['trace ' ]);
123
122
124
123
ob_start ();
125
124
Debugger::output ('txt ' );
@@ -129,7 +128,6 @@ function testOutput() {
129
128
$ this ->assertPattern ('/Undefined variable:\s+other/ ' , $ result );
130
129
$ this ->assertPattern ('/Context:/ ' , $ result );
131
130
$ this ->assertPattern ('/DebuggerTest::testOutput/i ' , $ result );
132
- $ this ->assertPattern ('/SimpleInvoker::invoke/i ' , $ result );
133
131
134
132
ob_start ();
135
133
Debugger::output ('html ' );
@@ -157,7 +155,6 @@ function testOutput() {
157
155
$ this ->assertPattern ('/Undefined variable:\s+buzz/ ' , $ result [1 ]);
158
156
$ this ->assertPattern ('/<a[^>]+>Code/ ' , $ result [1 ]);
159
157
$ this ->assertPattern ('/<a[^>]+>Context/ ' , $ result [2 ]);
160
- set_error_handler ('simpleTestErrorHandler ' );
161
158
}
162
159
163
160
/**
@@ -185,13 +182,12 @@ function testChangeOutputFormats() {
185
182
ob_start ();
186
183
$ foo .= '' ;
187
184
$ result = ob_get_clean ();
188
- set_error_handler ('SimpleTestErrorHandler ' );
189
185
190
186
$ data = array (
191
187
'error ' => array (),
192
188
'code ' => array (), '8 ' , '/code ' ,
193
189
'file ' => array (), 'preg:/[^<]+/ ' , '/file ' ,
194
- 'line ' => array (), '' . (intval (__LINE__ ) + - 8 ), '/line ' ,
190
+ 'line ' => array (), '' . (intval (__LINE__ ) - 7 ), '/line ' ,
195
191
'preg:/Undefined variable:\s+foo/ ' ,
196
192
'/error '
197
193
);
0 commit comments