mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 11:58:25 +00:00
4a87a75332
- Helpers for controllers -- each controller has it's own helper in the /app/helpers directory - /logs and /modules directories - The application runs just fine without /config/database.php if controllers don't ask for db access - Changed the name of /public/dispatch.php to /public/index.php, it's nicer and more standard, won't you agree? Kamil's fix for no-mod_rewrite needs to be re-implemented - Cleanups, fixes, and even one or two comments ;) git-svn-id: https://svn.cakephp.org/repo/trunk/cake@158 3807eeeb-6ff5-0310-8944-8be069107fe0
29 lines
905 B
Text
29 lines
905 B
Text
<?PHP if ($success) { ?>
|
|
<p class="box" id="ok"><b>PASSED</b></p>
|
|
<?PHP } else { ?>
|
|
<p class="box" id="error"><b>FAILED</b></p>
|
|
<?PHP } ?>
|
|
|
|
<table>
|
|
<?PHP foreach ($results as $r) {
|
|
$performed = $r['result']['tests'];
|
|
if ($performed||1) {
|
|
?>
|
|
<tr><th><b><?=$r['name']?></b> <?=$performed?> test<?=$performed==1?'':'s'?></th></tr>
|
|
<?PHP if ($r['result']['tests']) {
|
|
foreach ($r['result']['details'] as $detail) {
|
|
if ($detail['failed']) { ?>
|
|
<tr class="fail"><td><?=$r['name']?>::<?=$detail['method']?></td></tr>
|
|
<?PHP foreach ($detail['errors'] as $error) { ?>
|
|
<tr class="info"><td>
|
|
<span class="ok"><?=$error['expected'][0]?></span> <em><?=$error['expected'][1]?></em><br />
|
|
<span class="not"><?=$error['actual'][0]?></span> <em><?=$error['actual'][1]?></em>
|
|
</td></tr>
|
|
<?PHP
|
|
}
|
|
}
|
|
else { ?>
|
|
<tr class="pass"><td><?=$r['name']?>::<?=$detail['method']?></td></tr>
|
|
|
|
<?PHP } } } } } ?>
|
|
</table>
|