Esempio n. 1
0
 public function test_get_and_set_data()
 {
     $request = new HttpRequest();
     $this->assertTrue($request->getData() instanceof IHttpData);
     $data = new UrlEncodedData($request, ['foo' => 'bar']);
     $request->setData($data);
     $this->assertTrue($request->getData() instanceof IHttpData);
     $this->assertEquals('bar', $request->getData()->get('foo'));
 }