Minor change to Server docblock

This commit is contained in:
PJ Dietz 2020-08-15 07:24:57 -04:00
parent 1d71f06e71
commit c137a2066a
2 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ class Server
} }
/** /**
* Return a new Router that uses the server's dispatcher. * Return a new Router that uses the server's configuration.
* *
* @return Router * @return Router
*/ */

View File

@ -31,7 +31,7 @@ class ServerTest extends TestCase
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
public function testDispatchesMiddlewareStack() public function testDispatchesMiddlewareStack(): void
{ {
// This test will add a string to this array from each middleware. // This test will add a string to this array from each middleware.
@ -63,7 +63,7 @@ class ServerTest extends TestCase
$this->assertEquals(['first', 'second', 'third'], $steps); $this->assertEquals(['first', 'second', 'third'], $steps);
} }
public function testDispatchedRequest() public function testDispatchedRequest(): void
{ {
$request = new ServerRequest(); $request = new ServerRequest();
$capturedRequest = null; $capturedRequest = null;
@ -78,7 +78,7 @@ class ServerTest extends TestCase
$this->assertSame($request, $capturedRequest); $this->assertSame($request, $capturedRequest);
} }
public function testDispatchedResponse() public function testDispatchedResponse(): void
{ {
$response = new Response(); $response = new Response();
$capturedResponse = null; $capturedResponse = null;
@ -96,7 +96,7 @@ class ServerTest extends TestCase
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Respond // Respond
public function testRespondSendsResponseToTransmitter() public function testRespondSendsResponseToTransmitter(): void
{ {
$expectedResponse = new Response(200); $expectedResponse = new Response(200);
@ -129,7 +129,7 @@ class ServerTest extends TestCase
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Router // Router
public function testCreatesRouterWithDispatcher() public function testCreatesRouterWithDispatcher(): void
{ {
$dispatcher = $this->prophesize(DispatcherInterface::class); $dispatcher = $this->prophesize(DispatcherInterface::class);
$dispatcher->dispatch(Argument::cetera())->will( $dispatcher->dispatch(Argument::cetera())->will(
@ -161,7 +161,7 @@ class ServerTest extends TestCase
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Attributes // Attributes
public function testAddsAttributesToRequest() public function testAddsAttributesToRequest(): void
{ {
$this->server->setAttributes([ $this->server->setAttributes([
'name' => 'value' 'name' => 'value'
@ -181,7 +181,7 @@ class ServerTest extends TestCase
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// End of Stack // End of Stack
public function testReturnsLastDoublePassResponseAtEndOfStack() public function testReturnsLastDoublePassResponseAtEndOfStack(): void
{ {
$defaultResponse = new Response(404); $defaultResponse = new Response(404);