summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorDan Bernardic <dan.bernardic@gmail.com>2015-01-12 05:01:23 +0100
committerDan Bernardic <dan.bernardic@gmail.com>2015-01-12 05:01:23 +0100
commitd24652d4ef8232fa6cfd675aa80d1e182073a220 (patch)
tree70b9b5f866af893022b314b75922678baf150b11 /tests/codeigniter
parent99f31e76bd06876cd3bf789f9d2774f79818b7df (diff)
Added support for running unit tests on PHP 5.2
Signed-off-by: Dan Bernardic <dan.bernardic@gmail.com>
Diffstat (limited to 'tests/codeigniter')
-rw-r--r--tests/codeigniter/core/Output_test.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/tests/codeigniter/core/Output_test.php b/tests/codeigniter/core/Output_test.php
index a06c17045..887c077d7 100644
--- a/tests/codeigniter/core/Output_test.php
+++ b/tests/codeigniter/core/Output_test.php
@@ -3,19 +3,20 @@
class Output_test extends CI_TestCase {
public $output;
- protected $_output_data = <<<HTML
-<html>
- <head>
- <title>Basic HTML</title>
- </head>
- <body>
- Test
- </body>
-</html>
-HTML;
+ protected $_output_data = '';
public function set_up()
{
+ $this->_output_data =<<<HTML
+ <html>
+ <head>
+ <title>Basic HTML</title>
+ </head>
+ <body>
+ Test
+ </body>
+ </html>
+HTML;
$this->ci_set_config('charset', 'UTF-8');
$output = $this->ci_core_class('output');
$this->output = new $output();
@@ -59,4 +60,4 @@ HTML;
);
}
-} \ No newline at end of file
+}