mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
8a806d7fc5
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@309 3807eeeb-6ff5-0310-8944-8be069107fe0
30 lines
903 B
Text
30 lines
903 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>
|
|
<?php */ ?>
|