Show
Ignore:
Timestamp:
03/12/2008 10:32:25 AM (9 months ago)
Author:
Geert
Message:

Extending Exception the way it should be done. Calling parent's constructor now and got rid of magic get. http://php.net/exceptions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/unit_test/views/kohana_unit_test.php

    r2288 r2289  
    136136                                                <td class="k-failed"> 
    137137                                                        <strong><?php echo Kohana::lang('unit_test.failed') ?></strong> 
    138                                                         <pre><?php echo html::specialchars($result->message) ?></pre> 
    139                                                         <?php echo html::specialchars($result->file) ?> (<?php echo Kohana::lang('unit_test.line') ?>&nbsp;<?php echo $result->line ?>) 
     138                                                        <pre><?php echo html::specialchars($result->getMessage()) ?></pre> 
     139                                                        <?php echo html::specialchars($result->getFile()) ?> (<?php echo Kohana::lang('unit_test.line') ?>&nbsp;<?php echo $result->getLine() ?>) 
    140140 
    141                                                         <?php if ($result->debug !== NULL): ?> 
    142                                                                 <pre class="k-debug" title="Debug info"><?php echo '(', gettype($result->debug), ') ', html::specialchars(var_export($result->debug, TRUE)) ?></pre> 
     141                                                        <?php if ($result->getDebug() !== NULL): ?> 
     142                                                                <pre class="k-debug" title="Debug info"><?php echo '(', gettype($result->getDebug()), ') ', html::specialchars(var_export($result->getDebug(), TRUE)) ?></pre> 
    143143                                                        <?php endif ?> 
    144144