コード例 #1
0
ファイル: RequestTest.php プロジェクト: minond/http
 public function testInputGetterAndSetter()
 {
     $input = 'testing';
     $this->req->setInput($input);
     $this->assertEquals($input, $this->req->getInput());
 }
コード例 #2
0
ファイル: RouterTest.php プロジェクト: minond/restful
 public function testEmptyInputsAreTreatedAsEmptyArrays()
 {
     $req = new Request();
     $req->setInput('');
     $this->router->setRequest($req);
     $this->assertEquals([], $this->router->getRequestData());
 }