Beispiel #1
0
 public function testServerParams()
 {
     $this->assertEquals([], $this->request->getServerParams());
     $uri = new Uri('http://server.loc');
     $stream = fopen('php://temp', 'wb+');
     $streamObject = new Stream($stream);
     $request = new ServerRequest('GET', $uri, $streamObject, [], ['a' => 'b']);
     $this->assertEquals(['a' => 'b'], $request->getServerParams());
 }