예제 #1
0
파일: RequestTest.php 프로젝트: minond/http
 public function testInputGetterAndSetter()
 {
     $input = 'testing';
     $this->req->setInput($input);
     $this->assertEquals($input, $this->req->getInput());
 }
예제 #2
0
 public function testEmptyInputsAreTreatedAsEmptyArrays()
 {
     $req = new Request();
     $req->setInput('');
     $this->router->setRequest($req);
     $this->assertEquals([], $this->router->getRequestData());
 }