Changeset 2266 for trunk/modules/unit_test/views/kohana_unit_test.php
- Timestamp:
- 03/10/2008 08:44:19 AM (10 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/unit_test/views/kohana_unit_test.php
r2248 r2266 40 40 padding: 3px; 41 41 } 42 #kohana-unit-test .k-debug 43 { 44 padding: 3px; 45 background-color: #FFF0F0; 46 border: 1px solid #FFD0D0; 47 border-right-color: #FFFBFB; 48 border-bottom-color: #FFFBFB; 49 color: #83919C; 50 } 42 51 #kohana-unit-test .k-altrow td 43 52 { … … 49 58 border-right: 1px solid #E5EFF8; 50 59 } 51 #kohana-unit-test .k-passed , #kohana-unit-test .k-altrow .k-passed60 #kohana-unit-test .k-passed 52 61 { 53 62 background-color: #E0FFE0; 54 63 } 55 #kohana-unit-test .k-failed, #kohana-unit-test .k-altrow .k-failed 64 #kohana-unit-test .k-altrow .k-passed 65 { 66 background-color: #D0FFD0; 67 } 68 #kohana-unit-test .k-failed 56 69 { 57 70 background-color: #FFE0E0; 71 } 72 #kohana-unit-test .k-altrow .k-failed 73 { 74 background-color: #FFD0D0; 58 75 } 59 76 </style> … … 84 101 <?php if ($result === TRUE): ?> 85 102 86 <td class="k-passed"> Passed</td>103 <td class="k-passed"><strong><?php echo Kohana::lang('unit_test.passed') ?></strong></td> 87 104 88 <?php else: ?>105 <?php else: /* $result == Kohana_Unit_Test_Exception */ ?> 89 106 90 107 <td class="k-failed"> 91 Failed: 92 <?php 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 ?>) 93 111 94 $trace = $result->getTrace(); 95 echo '<span title="', $trace[0]['file'], '">', $class, EXT, ' (line ', $trace[0]['line'], ')</span>'; 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 ?> 96 115 97 ?>98 116 </td> 99 117
