Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (69 sloc) 2.226 kb
* Lithium: the most rad php framework
* @copyright Copyright 2012, Union of RAD (
* @license The BSD License
use lithium\util\Inflector;
<!doctype html>
<!-- Title intentionally left blank, forcing user agents use the current URL as title. -->
<?php $base = $request->env('base'); ?>
<meta charset="utf-8" />
<link rel="stylesheet" href="<?php echo $base; ?>/css/debug.css" />
<link href="<?php echo $base; ?>/favicon.ico" type="image/x-icon" rel="icon" />
<link href="<?php echo $base; ?>/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<body class="test-dashboard">
<div id="header">
<a href="<?php echo $base ?>/test/">
<span class="triangle"></span> Lithium Test Dashboard
<a class="test-all" href="<?php echo $base ?>/test/all">run all tests</a>
<div class="article">
<div class="test-menu">
<?php echo $report->render("menu", array("menu" => $menu, "base" => $base)) ?>
<div class="test-content">
<?php if ($report->title) { ?>
<h2><span>test results for </span><?php echo $report->title; ?></h2>
<?php } ?>
<span class="filters">
<?php echo join('', array_map(
function($class) use ($request) {
$url = "?filters[]={$class}";
$name = join('', array_slice(explode("\\", $class), -1));
$key = Inflector::underscore($name);
$isActive = (
isset($request->query['filters']) &&
array_search($class, $request->query['filters']) !== false
$active = $isActive ? 'active' : null;
return "<a class=\"{$key} {$active}\" href=\"{$url}\">{$name}</a>";
)); ?>
echo $report->render("stats");
foreach ($report->filters() as $filter => $options) {
$data = $report->results['filters'][$filter];
echo $report->render($options['name'], compact('data', 'base'));
<div style="clear:both"></div>
Jump to Line
Something went wrong with that request. Please try again.