5 require_once(__DIR__ .
"/../../../../../../libs/composer/vendor/autoload.php");
7 use \ILIAS\UI\Implementation\Component\Input\Container\Form\PostDataFromServerRequest;
15 $request = \Mockery::mock(ServerRequestInterface::class);
16 $request->shouldReceive(
"getParsedBody")->andReturn([
"foo" =>
"bar"]);
23 $this->assertEquals(
"bar", $this->post_data->get(
"foo"));
31 $this->post_data->get(
"baz");
35 $this->assertTrue($raised,
"Logic exception was raised.");
41 $this->assertEquals(
"bar", $this->post_data->getOr(
"foo",
"baz"));
47 $this->assertEquals(
"blaw", $this->post_data->getOr(
"baz",
"blaw"));
foreach($paths as $path) $request
Implements interaction of input element with post data from psr-7 server request. ...