diff options
author | Andrey Andreev <narf@bofh.bg> | 2011-12-26 15:27:17 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2011-12-26 15:27:17 +0100 |
commit | 114586fa466e085180f8c2c5b9ec1c514b3cefb2 (patch) | |
tree | 286b4c8354e0e96c113d438e78459e5e6e84ea50 /system/libraries | |
parent | 2a27d312074598346e29bfe76bb87b81a00554d4 (diff) |
Replace private with protected, so the class can be easily extended
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Unit_test.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/system/libraries/Unit_test.php b/system/libraries/Unit_test.php index dac1a5c7e..99c34ea61 100644 --- a/system/libraries/Unit_test.php +++ b/system/libraries/Unit_test.php @@ -43,9 +43,9 @@ class CI_Unit_test { public $active = TRUE; public $results = array(); public $strict = FALSE; - private $_template = NULL; - private $_template_rows = NULL; - private $_test_items_visible = array(); + protected $_template = NULL; + protected $_template_rows = NULL; + protected $_test_items_visible = array(); public function __construct() { @@ -294,10 +294,10 @@ class CI_Unit_test { * * This lets us show file names and line numbers * - * @access private + * @access protected * @return array */ - private function _backtrace() + protected function _backtrace() { if (function_exists('debug_backtrace')) { @@ -315,10 +315,10 @@ class CI_Unit_test { /** * Get Default Template * - * @access private + * @access protected * @return string */ - private function _default_template() + protected function _default_template() { $this->_template = "\n".'<table style="width:100%; font-size:small; margin:10px 0; border-collapse:collapse; border:1px solid #CCC;">{rows}'."\n".'</table>'; @@ -333,10 +333,10 @@ class CI_Unit_test { * * Harvests the data within the template {pseudo-variables} * - * @access private + * @access protected * @return void */ - private function _parse_template() + protected function _parse_template() { if ( ! is_null($this->_template_rows)) { @@ -360,7 +360,7 @@ class CI_Unit_test { * Helper functions to test boolean true/false * * - * @access private + * @access protected * @return bool */ function is_true($test) |