diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-10 13:44:28 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-03-10 13:44:28 +0100 |
commit | 5d3e04ec80ca3b485dfee272d9f6c142c38042af (patch) | |
tree | 2e61d04a3fa0d1648d17fd6e00f3bcfe75325571 /tests/lib | |
parent | 722b23ffcb9ad60277aa4473fca60805a86a312b (diff) | |
parent | 7729faa553c0ec93a13533003a53dc66078467a8 (diff) |
Merge pull request #1156 from tiyowan/feature/unit-tests
Fix test errors in Loader_test.php and URI_test.php
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/common.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/common.php b/tests/lib/common.php index 6d29eb0d6..4a832587d 100644 --- a/tests/lib/common.php +++ b/tests/lib/common.php @@ -87,17 +87,17 @@ function remove_invisible_characters($str, $url_encoded = TRUE) function show_error($message, $status_code = 500, $heading = 'An Error Was Encountered') { - throw new Exception('CI Error: '.$message); + throw new RuntimeException('CI Error: '.$message); } function show_404($page = '', $log_error = TRUE) { - throw new Exception('CI Error: 404'); + throw new RuntimeException('CI Error: 404'); } function _exception_handler($severity, $message, $filepath, $line) { - throw new Exception('CI Exception: '.$message.' | '.$filepath.' | '.$line); + throw new RuntimeException('CI Exception: '.$message.' | '.$filepath.' | '.$line); } @@ -129,4 +129,4 @@ function set_status_header($code = 200, $text = '') return TRUE; } -// EOF
\ No newline at end of file +// EOF |