| 93 | | text::alternate(); |
| 94 | | foreach ($methods as $method => $result): |
| 95 | | |
| 96 | | ?> |
| 97 | | |
| 98 | | <tr class="<?php echo text::alternate('', 'k-altrow') ?>"> |
| 99 | | <td class="k-name"><?php echo $method ?></td> |
| 100 | | |
| 101 | | <?php if ($result === TRUE): ?> |
| 102 | | |
| 103 | | <td class="k-passed"><strong><?php echo Kohana::lang('unit_test.passed') ?></strong></td> |
| 104 | | |
| 105 | | <?php else: /* $result == Kohana_Unit_Test_Exception */ ?> |
| 106 | | |
| 107 | | <td class="k-failed"> |
| 108 | | <strong><?php echo Kohana::lang('unit_test.failed') ?></strong> |
| 109 | | <pre><?php echo html::specialchars($result->message) ?></pre> |
| 110 | | <?php echo html::specialchars($result->file) ?> (<?php echo Kohana::lang('unit_test.line') ?> <?php echo $result->line ?>) |
| 111 | | |
| 112 | | <?php if ($result->debug !== NULL): ?> |
| 113 | | <pre class="k-debug" title="Debug info"><?php echo '(', gettype($result->debug), ') ', html::specialchars(var_export($result->debug, TRUE)) ?></pre> |
| 114 | | <?php endif ?> |
| 115 | | |
| 116 | | </td> |
| 117 | | |
| 118 | | <?php endif ?> |
| 119 | | |
| | 94 | <tr> |
| | 95 | <td colspan="2"><?php echo Kohana::lang('unit_test.no_tests_found') ?></td> |
| 122 | | <?php endforeach ?> |
| | 98 | <?php else: |
| | 99 | |
| | 100 | foreach ($methods as $method => $result): |
| | 101 | |
| | 102 | ?> |
| | 103 | |
| | 104 | <tr class="<?php echo text::alternate('', 'k-altrow') ?>"> |
| | 105 | <td class="k-name"><?php echo $method ?></td> |
| | 106 | |
| | 107 | <?php if ($result === TRUE): ?> |
| | 108 | |
| | 109 | <td class="k-passed"><strong><?php echo Kohana::lang('unit_test.passed') ?></strong></td> |
| | 110 | |
| | 111 | <?php else: /* $result == Kohana_Unit_Test_Exception */ ?> |
| | 112 | |
| | 113 | <td class="k-failed"> |
| | 114 | <strong><?php echo Kohana::lang('unit_test.failed') ?></strong> |
| | 115 | <pre><?php echo html::specialchars($result->message) ?></pre> |
| | 116 | <?php echo html::specialchars($result->file) ?> (<?php echo Kohana::lang('unit_test.line') ?> <?php echo $result->line ?>) |
| | 117 | |
| | 118 | <?php if ($result->debug !== NULL): ?> |
| | 119 | <pre class="k-debug" title="Debug info"><?php echo '(', gettype($result->debug), ') ', html::specialchars(var_export($result->debug, TRUE)) ?></pre> |
| | 120 | <?php endif ?> |
| | 121 | |
| | 122 | </td> |
| | 123 | |
| | 124 | <?php endif ?> |
| | 125 | |
| | 126 | </tr> |
| | 127 | |
| | 128 | <?php endforeach ?> |
| | 129 | |
| | 130 | <?php endif ?> |