-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtest-results.php
More file actions
33 lines (30 loc) · 909 Bytes
/
test-results.php
File metadata and controls
33 lines (30 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php namespace ProcessWire;
/** @var TextformatterHannaCode $textformatter */
/** @var string $tag */
/** @var Config $config */
if(!defined("PROCESSWIRE")) die();
$config->debug = true;
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1);
$timer = Debug::timer();
?><!DOCTYPE html>
<html
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Hanna Code test results</title>
<style type='text/css'>
body {
background: #fff;
color: #555;
font-family: Arial, sans-serif;
}
</style>
</head>
<body style='margin: 0; padding: 0'>
<p style='margin-top:0'><pre><?php echo htmlentities($tag); ?></pre></p>
<div style='border: 1px dashed #ccc; padding: 10px;'>
<?php echo $textformatter->render($tag); ?>
</div>
<p><small><?php echo sprintf($this->_('Executed in %s seconds'), Debug::timer($timer)); ?></small></p>
</body>
</html>