diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-20 15:44:58 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-20 15:44:58 +0100 |
commit | 87c7813015483820eb2884d9e3695f2773c1b2b2 (patch) | |
tree | 7e560e7d01e54ba1a50497799c43672f9d6dd6bb /tests | |
parent | 77bd21b15305412b63c8f448787d5b275efd07e2 (diff) |
Update tests following 77bd21b15305412b63c8f448787d5b275efd07e2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codeigniter/core/Input_test.php | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/tests/codeigniter/core/Input_test.php b/tests/codeigniter/core/Input_test.php index fe8738832..ca1c6dfd7 100644 --- a/tests/codeigniter/core/Input_test.php +++ b/tests/codeigniter/core/Input_test.php @@ -22,18 +22,7 @@ class Input_test extends CI_TestCase { public function test_get_not_exists() { - $this->assertEmpty($this->input->get()); - $this->assertEmpty($this->input->get('foo')); - - $this->assertTrue( ! $this->input->get()); - $this->assertTrue( ! $this->input->get('foo')); - - // Test we're getting empty results - $this->assertTrue($this->input->get() === NULL); - $this->assertTrue($this->input->get('foo') === NULL); - - // Test new 3.0 behaviour for non existant results (used to be FALSE) - $this->assertTrue($this->input->get() === NULL); + $this->assertTrue($this->input->get() === array()); $this->assertTrue($this->input->get('foo') === NULL); } @@ -64,16 +53,7 @@ class Input_test extends CI_TestCase { public function test_post_not_exists() { - $this->assertEmpty($this->input->post()); - $this->assertEmpty($this->input->post('foo')); - - $this->assertTrue( ! $this->input->post()); - $this->assertTrue( ! $this->input->post('foo')); - - $this->assertTrue($this->input->post() === NULL); - $this->assertTrue($this->input->post('foo') === NULL); - - $this->assertTrue($this->input->post() === NULL); + $this->assertTrue($this->input->post() === array()); $this->assertTrue($this->input->post('foo') === NULL); } |