Example #1
0
 public function testGetQueryParamReturnsExpected()
 {
     $requestData = array('QUERY_STRING' => 'name=dave');
     $request = new Request($requestData);
     $this->assertEquals($request->getQueryParam('name'), 'dave');
     $this->assertNull($request->getQueryParam('non-existent'));
 }