Skip to content

Commit

Permalink
Update tests following 77bd21b
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Nov 20, 2012
1 parent 77bd21b commit 87c7813
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions tests/codeigniter/core/Input_test.php
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 87c7813

Please sign in to comment.