Example #1
0
 /**
  * Tests deleting a values from a method.
  *
  * @covers empire\framework\request\Request::deleteAll
  */
 public function testDeleteAll()
 {
     $this->resetGetPost();
     $_GET['hello'] = 'world';
     $_GET['hello2'] = 'world2';
     $_POST['hi'] = 'universe';
     $_POST['hi2'] = 'universe2';
     $this->request->deleteAll(INPUT_GET);
     $this->request->deleteAll(INPUT_POST);
     $this->assertEmpty($_GET);
     $this->assertEmpty($_POST);
 }