" class="collapsed"> <table cellspacing="0"> <?php foreach ($GLOBALS[$var] as $key => $value) { ?> <tr> <td class="key"> <code> <?php echo $key; ?> </code> </td> <td class="value"> <pre><?php echo Kohana_Exception::safe_dump($value, $key); ?> </pre> </td> </tr> <?php } ?> </table> </div> <?php } ?> </div> </div> </div>
public function safe_dump_test() { // Verify the delegation. $this->assert_equal('<small>string</small><span>(19)</span> "removed for display"', Kohana_Exception::safe_dump("original value", "password")); $this->assert_equal('<small>string</small><span>(14)</span> "original value"', Kohana_Exception::safe_dump("original value", "meow")); }