mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 03:48:24 +00:00
da79dff7d7
- Dispatcher sets a Controller::here variable with the real URL used to access the page, so that tag generators can that use an url (linkTo and formTag for example) use the real url, not guess it from the controller and action names which often fails - Log class works more reliably and a LogError() shortcut function was added - Nstring class added, to store string-related functions (there are just four yet, including a random password generator and an string-to-array splitter - SimpleTest library (with Rephlux) included in /vendors; I've tweaked SimpleScorer::inCli() function, because it didn't work on my setup, it should work everywhere now (it checks for empty REQUEST_METHOD, which should only be empty in CLI) git-svn-id: https://svn.cakephp.org/repo/trunk/cake@248 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 */ ?>
|