mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Updated kohana and modules/unit_test to upstream r4356
This commit is contained in:
@@ -211,13 +211,21 @@ class Unit_Test_Core {
|
||||
|
||||
// Hide passed tests from the report?
|
||||
$hide_passed = (bool) (($hide_passed !== NULL) ? $hide_passed : Kohana::config('unit_test.hide_passed', FALSE, FALSE));
|
||||
|
||||
|
||||
|
||||
if (PHP_SAPI == 'cli')
|
||||
{
|
||||
$report = View::factory('kohana_unit_test_cli');
|
||||
}
|
||||
else
|
||||
{
|
||||
$report = View::factory('kohana_unit_test');
|
||||
}
|
||||
// Render unit_test report
|
||||
return View::factory('kohana_unit_test')
|
||||
->set('results', $this->results)
|
||||
->set('stats', $this->stats)
|
||||
->set('hide_passed', $hide_passed)
|
||||
->render();
|
||||
return $report->set('results', $this->results)
|
||||
->set('stats', $this->stats)
|
||||
->set('hide_passed', $hide_passed)
|
||||
->render();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user