Skip to content

Commit

Permalink
Mock getRequestBody
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang authored and mrubinsk committed Jul 4, 2018
1 parent e4a9a09 commit 47f0a48
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Horde/Controller/Request/Mock.php
Expand Up @@ -98,4 +98,13 @@ public function getRequestVars()
{
return $this->getVars('REQUEST');
}

/**
* The request body if it is not form-encoded
* @returns Horde_Stream
*/
public function getRequestBody()
{
return new Horde_Stream_String(array('string' => $this->getVars('REQUEST'));
}
}

0 comments on commit 47f0a48

Please sign in to comment.