diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-01 10:45:51 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-01 10:45:51 +0000 |
commit | 5a3731d0c6e846c926e233109359632afaacacdb (patch) | |
tree | fcab6d40a25deffcaa3e755f0ab3d1610b5a9871 | |
parent | 08f9822b72932bafa4aa6327f601e1901e2e0003 (diff) |
Remove all html::specialchars(); we're not getting rendered in a
browser.
-rw-r--r-- | modules/gallery_unit_test/controllers/test.php | 4 | ||||
-rw-r--r-- | modules/gallery_unit_test/views/kohana_unit_test.php | 12 |
2 files changed, 7 insertions, 9 deletions
diff --git a/modules/gallery_unit_test/controllers/test.php b/modules/gallery_unit_test/controllers/test.php index d7a9de90..5f276bd5 100644 --- a/modules/gallery_unit_test/controllers/test.php +++ b/modules/gallery_unit_test/controllers/test.php @@ -29,11 +29,9 @@ class Test_Controller extends Controller { if ($path != MODPATH . "unit_test/tests") { $paths[] = $path; } - } Kohana::config_set('unit_test.paths', $paths); - $test = new Unit_Test(DOCROOT . "modules/gallery_unit_test/tests"); - echo $test; + print new Unit_Test(); } } diff --git a/modules/gallery_unit_test/views/kohana_unit_test.php b/modules/gallery_unit_test/views/kohana_unit_test.php index c5ca6f30..1594c700 100644 --- a/modules/gallery_unit_test/views/kohana_unit_test.php +++ b/modules/gallery_unit_test/views/kohana_unit_test.php @@ -16,24 +16,24 @@ foreach ($results as $class => $methods) { if ($result === true AND $hide_passed === true) { continue; } - printf("%-40.40s", $method); + printf("%-56.56s", $method); if ($result === true) { echo Kohana::lang("unit_test.passed"), "\n"; } else if ($result instanceof Kohana_Unit_Test_Exception) { echo Kohana::lang("unit_test.failed"), "\n"; - echo " ", html::specialchars($result->getMessage()), "\n"; - echo " ", html::specialchars($result->getFile()); + echo " ", $result->getMessage(), "\n"; + echo " ", $result->getFile(); echo " ", "(" . Kohana::lang("unit_test.line") . " " . $result->getLine(), ")\n"; if ($result->getDebug() !== null) { echo " ", "(", gettype($result->getDebug()), ") ", - html::specialchars(var_export($result->getDebug(), true)), "\n"; + var_export($result->getDebug(), true), "\n"; } } else if ($result instanceof Exception) { echo Kohana::lang("unit_test.error"), "\n"; if ($result->getMessage()) { - echo " ", html::specialchars($result->getMessage()), "\n"; + echo " ", $result->getMessage(), "\n"; } - echo " ", html::specialchars($result->getFile()), " (", + echo " ", $result->getFile(), " (", Kohana::lang("unit_test.line"), " ", $result->getLine(), ")\n"; } } |