Exemple #1
0
 public function test_marshall_PUT_body_as_params()
 {
     $this->request->setMethod('PUT');
     $this->request->setRawBody('param1=value1&param2=value2');
     $this->plugin->preDispatch($this->request);
     $this->assertEquals('value1', $this->request->getParam('param1'));
     $this->assertEquals('value2', $this->request->getParam('param2'));
 }