Пример #1
0
 function testVars()
 {
     $_GET["a"] = "aaa";
     $_POST["foo"] = "bar";
     $_FILES["bar"] = "foo";
     $r = new RestRequest();
     $this->assertEquals($r->getGet("a"), "aaa");
     $this->assertEquals($r->getPost("foo"), "bar");
     $this->assertEquals($r->getFiles("bar"), "foo");
 }