Lines Matching refs:output
109 $output = new \XMLWriter;
110 if (!$output->openUri('php://output')) {
113 $output->startElement('html');
114 $output->startElement('head');
115 $output->writeElement('title', 'Enter a path to the database');
116 $output->endElement();
117 $output->startElement('body');
118 $output->writeElement('h2', 'Please enter the path to a coverage database');
119 $output->startElement('form');
120 $output->writeAttribute('name', 'getdatabase');
121 $output->writeAttribute('method', 'POST');
122 $output->writeAttribute('action', $this->controller->getTOCLink());
123 $output->startElement('input');
124 $output->writeAttribute('type', 'text');
125 $output->writeAttribute('name', 'setdatabase');
126 $output->endElement();
127 $output->startElement('input');
128 $output->writeAttribute('type', 'submit');
129 $output->endElement();
130 $output->endElement();
131 $output->endElement();
132 $output->endElement();
133 $output->endDocument();
179 $output = new \XMLWriter;
180 if (!$output->openUri($this->getLinePath($name, $line))) {
183 $output->setIndentString(' ');
184 $output->setIndent(true);
185 $output->startElement('html');
186 $output->startElement('head');
187 $output->writeElement('title', 'Tests covering line ' . $line . ' of ' . $name);
188 $output->startElement('link');
189 $output->writeAttribute('href', 'cover.css');
190 $output->writeAttribute('rel', 'stylesheet');
191 $output->writeAttribute('type', 'text/css');
192 $output->endElement();
193 $output->endElement();
194 $output->startElement('body');
195 $output->writeElement('h2', 'Tests covering line ' . $line . ' of ' . $name);
196 $output->startElement('p');
197 $output->startElement('a');
198 $output->writeAttribute('href', 'index.html');
199 $output->text('Aggregate Code Coverage for all tests');
200 $output->endElement();
201 $output->endElement();
202 $output->startElement('p');
203 $output->startElement('a');
204 $output->writeAttribute('href', $this->mangleFile($name));
205 $output->text('File ' . $name . ' code coverage');
206 $output->endElement();
207 $output->endElement();
208 $output->startElement('ul');
210 $output->startElement('li');
211 $output->startElement('a');
212 $output->writeAttribute('href', $this->mangleTestFile($testfile));
213 $output->text(str_replace($testpath . '/', '', $testfile));
214 $output->endElement();
215 $output->endElement();
217 $output->endElement();
218 $output->endElement();
219 $output->endDocument();
228 $output = new \XMLWriter;
229 if (!$output->openUri($this->manglePath($source->name(), $istest))) {
232 $output->setIndent(false);
233 $output->startElement('html');
234 $output->text("\n ");
235 $output->startElement('head');
236 $output->text("\n ");
238 … $output->writeElement('title', 'Code Coverage for ' . $source->shortName() . ' in ' . $istest);
240 $output->writeElement('title', 'Code Coverage for ' . $source->shortName());
242 $output->text("\n ");
243 $output->startElement('link');
244 $output->writeAttribute('href', 'cover.css');
245 $output->writeAttribute('rel', 'stylesheet');
246 $output->writeAttribute('type', 'text/css');
247 $output->endElement();
248 $output->text("\n ");
249 $output->endElement();
250 $output->text("\n ");
251 $output->startElement('body');
252 $output->text("\n ");
254 … $output->writeElement('h2', 'Code Coverage for ' . $source->shortName() . ' in ' . $istest);
256 $output->writeElement('h2', 'Code Coverage for ' . $source->shortName());
258 $output->text("\n ");
259 $output->writeElement('h3', 'Coverage: ' . $source->coveragePercentage() . '%');
260 $output->text("\n ");
261 $output->startElement('p');
262 $output->startElement('a');
263 $output->writeAttribute('href', 'index.html');
264 $output->text('Aggregate Code Coverage for all tests');
265 $output->endElement();
266 $output->endElement();
267 $output->startElement('pre');
271 $output->startElement('span');
272 $output->writeAttribute('class', 'ln');
273 $output->text(str_pad($num, 8, ' ', STR_PAD_LEFT));
274 $output->endElement();
277 $output->text(str_pad(': ', 13, ' ', STR_PAD_LEFT) . $line);
281 $output->startElement('span');
283 $output->writeAttribute('class', 'nc');
284 $output->text(' ');
286 $output->writeAttribute('class', 'cv');
288 $output->startElement('a');
289 $output->writeAttribute('href', $this->getLineLink($source->name(), $num));
291 $output->text(str_pad($coverage, 10, ' ', STR_PAD_LEFT) . ' ');
293 $output->endElement();
299 $output->text(': ' . $line);
300 $output->endElement();
302 $output->endElement();
303 $output->text("\n ");
304 $output->endElement();
305 $output->text("\n ");
306 $output->endElement();
307 $output->endDocument();
312 $output = new \XMLWriter;
313 if (!$output->openUri('php://output')) {
316 $output->setIndentString(' ');
317 $output->setIndent(true);
318 $output->startElement('html');
319 $output->startElement('head');
321 $output->writeElement('title', 'Code Coverage Summary [' . $istest . ']');
323 $output->writeElement('title', 'Code Coverage Summary');
325 $output->startElement('link');
326 $output->writeAttribute('href', 'cover.css');
327 $output->writeAttribute('rel', 'stylesheet');
328 $output->writeAttribute('type', 'text/css');
329 $output->endElement();
330 $output->endElement();
331 $output->startElement('body');
333 $output->writeElement('h2', 'Code Coverage Files for test ' . $istest);
335 $output->writeElement('h2', 'Code Coverage Files');
336 $output->writeElement('h3', 'Total lines: ' . $total . ', covered lines: ' . $covered);
341 $output->startElement('p');
343 $output->writeAttribute('class', 'bad');
345 $output->writeAttribute('class', 'ok');
347 $output->writeAttribute('class', 'good');
349 $output->text($percent . '% code coverage');
350 $output->endElement();
352 $output->startElement('p');
353 $output->startElement('a');
354 $output->writeAttribute('href', $this->controller->getTOCLink(true));
355 $output->text('Code Coverage per PHPT test');
356 $output->endElement();
357 $output->endElement();
358 $output->startElement('ul');
361 $output->startElement('li');
363 $output->startElement('span');
365 $output->writeAttribute('class', 'bad');
367 $output->writeAttribute('class', 'ok');
369 $output->writeAttribute('class', 'good');
371 $output->text(' Coverage: ' . str_pad($percent . '%', 4, ' ', STR_PAD_LEFT));
372 $output->endElement();
373 $output->startElement('a');
374 $output->writeAttribute('href', $this->mangleFile($name, $istest));
375 $output->text($source->shortName());
376 $output->endElement();
377 $output->endElement();
379 $output->endElement();
380 $output->endElement();
381 $output->endDocument();
386 $output = new \XMLWriter;
387 if (!$output->openUri('php://output')) {
390 $output->setIndentString(' ');
391 $output->setIndent(true);
392 $output->startElement('html');
393 $output->startElement('head');
394 $output->writeElement('title', 'Test Summary');
395 $output->startElement('link');
396 $output->writeAttribute('href', 'cover.css');
397 $output->writeAttribute('rel', 'stylesheet');
398 $output->writeAttribute('type', 'text/css');
399 $output->endElement();
400 $output->endElement();
401 $output->startElement('body');
402 $output->writeElement('h2', 'Tests Executed, click for code coverage summary');
403 $output->startElement('p');
404 $output->startElement('a');
405 $output->writeAttribute('href', $this->controller->getTOClink());
406 $output->text('Aggregate Code Coverage for all tests');
407 $output->endElement();
408 $output->endElement();
409 $output->startElement('ul');
411 $output->startElement('li');
412 $output->startElement('a');
413 $output->writeAttribute('href', $this->mangleTestFile($test));
414 $output->text(str_replace($agg->testpath . '/', '', $test));
415 $output->endElement();
416 $output->endElement();
418 $output->endElement();
419 $output->endElement();
420 $output->endDocument();
426 $output = new \XMLWriter;
427 if (!$output->openUri('php://output')) {
430 $output->setIndentString(' ');
431 $output->setIndent(true);
432 $output->startElement('html');
433 $output->startElement('head');
434 $output->writeElement('title', 'Code Coverage Summary for test ' . $reltest);
435 $output->startElement('link');
436 $output->writeAttribute('href', 'cover.css');
437 $output->writeAttribute('rel', 'stylesheet');
438 $output->writeAttribute('type', 'text/css');
439 $output->endElement();
440 $output->endElement();
441 $output->startElement('body');
442 $output->writeElement('h2', 'Code Coverage Files for test ' . $reltest);
443 $output->startElement('ul');
449 $output->startElement('li');
451 $output->startElement('span');
453 $output->writeAttribute('class', 'bad');
455 $output->writeAttribute('class', 'ok');
457 $output->writeAttribute('class', 'good');
459 … $output->text(' Coverage: ' . str_pad($source->coveragePercentage() . '%', 4, ' ', STR_PAD_LEFT));
460 $output->endElement();
461 $output->startElement('a');
462 $output->writeAttribute('href', $this->mangleFile($name, $reltest));
463 $output->text($source->shortName());
464 $output->endElement();
465 $output->endElement();
468 $output->endElement();
469 $output->endElement();
470 $output->endDocument();