Permalink
Browse files

Update tests following 77bd21b

  • Loading branch information...
1 parent 77bd21b commit 87c7813015483820eb2884d9e3695f2773c1b2b2 @narfbg narfbg committed Nov 20, 2012
Showing with 2 additions and 22 deletions.
  1. +2 −22 tests/codeigniter/core/Input_test.php
@@ -22,18 +22,7 @@ public function set_up()
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 @@ public function test_get_exist_with_xss_clean()
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);
}

0 comments on commit 87c7813

Please sign in to comment.