diff options
author | Hamza Bhatti <tiyowan@gmail.com> | 2012-03-10 10:07:05 +0100 |
---|---|---|
committer | Hamza Bhatti <tiyowan@gmail.com> | 2012-03-10 10:07:05 +0100 |
commit | 7729faa553c0ec93a13533003a53dc66078467a8 (patch) | |
tree | 2e61d04a3fa0d1648d17fd6e00f3bcfe75325571 /tests/codeigniter/core/URI_test.php | |
parent | e39728c55d3745ff60742d7dd1c5114ec690d1db (diff) |
Fix test errors in Loader_test.php and URI_test.php
Change exceptions from Exception to RuntimeException since PHPUnit 3.6
doesn't like you to expect generic exceptions. The error it gives is:
InvalidArgumentException: You must not expect the generic exception class
travis-ci.org/#!/tiyowan/CodeIgniter/builds/832518
This issue addressed by using exceptions that are more specific.
Diffstat (limited to 'tests/codeigniter/core/URI_test.php')
-rw-r--r-- | tests/codeigniter/core/URI_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codeigniter/core/URI_test.php b/tests/codeigniter/core/URI_test.php index 87d921b11..40252aa14 100644 --- a/tests/codeigniter/core/URI_test.php +++ b/tests/codeigniter/core/URI_test.php @@ -189,7 +189,7 @@ class URI_test extends CI_TestCase { public function test_filter_uri_throws_error() { - $this->setExpectedException('Exception'); + $this->setExpectedException('RuntimeException'); $this->uri->config->set_item('enable_query_strings', FALSE); $this->uri->config->set_item('permitted_uri_chars', 'a-z 0-9~%.:_\-'); @@ -341,4 +341,4 @@ class URI_test extends CI_TestCase { // END URI_test Class /* End of file URI_test.php */ -/* Location: ./tests/core/URI_test.php */
\ No newline at end of file +/* Location: ./tests/core/URI_test.php */ |