@@ -26,7 +26,7 @@ protected function setUp(): void
2626 };
2727 }
2828
29- protected function assertRelay (Relay $ relay )
29+ protected function assertRelay (Relay $ relay ): void
3030 {
3131 FakeMiddleware::$ count = 0 ;
3232
@@ -41,7 +41,7 @@ protected function assertRelay(Relay $relay)
4141 $ this ->assertSame ('<6<5<4 ' , $ actual );
4242 }
4343
44- public function testArrayQueue ()
44+ public function testArrayQueue (): void
4545 {
4646 $ queue = [
4747 new FakeMiddleware (),
@@ -53,7 +53,7 @@ public function testArrayQueue()
5353 $ this ->assertRelay (new Relay ($ queue ));
5454 }
5555
56- public function testTraversableQueue ()
56+ public function testTraversableQueue (): void
5757 {
5858 $ queue = new class implements IteratorAggregate {
5959 public function getIterator (): Generator
@@ -73,21 +73,21 @@ public function getIterator(): Generator
7373 /**
7474 * @psalm-suppress InvalidArgument
7575 */
76- public function testBadQueue ()
76+ public function testBadQueue (): void
7777 {
7878 $ this ->expectException (TypeError::class);
7979 new Relay ('bad ' );
8080 }
8181
82- public function testEmptyQueue ()
82+ public function testEmptyQueue (): void
8383 {
8484 $ this ->expectException (InvalidArgumentException::class);
8585 $ this ->expectExceptionMessage ('$queue cannot be empty ' );
8686
8787 new Relay ([]);
8888 }
8989
90- public function testQueueWithInvalidEntry ()
90+ public function testQueueWithInvalidEntry (): void
9191 {
9292 $ this ->expectException (RuntimeException::class);
9393 $ this ->expectExceptionMessage (
@@ -98,7 +98,7 @@ public function testQueueWithInvalidEntry()
9898 $ relay ->handle (ServerRequestFactory::fromGlobals ());
9999 }
100100
101- public function testResolverEntries ()
101+ public function testResolverEntries (): void
102102 {
103103 $ queue = [
104104 FakeMiddleware::class,
@@ -112,7 +112,7 @@ public function testResolverEntries()
112112 $ this ->assertRelay (new Relay ($ queue , $ resolver ));
113113 }
114114
115- public function testRequestHandlerInQueue ()
115+ public function testRequestHandlerInQueue (): void
116116 {
117117 $ queue = [
118118 new FakeMiddleware (),
@@ -124,7 +124,7 @@ public function testRequestHandlerInQueue()
124124 $ this ->assertRelay (new Relay ([$ requestHandler ]));
125125 }
126126
127- public function testCallableMiddleware ()
127+ public function testCallableMiddleware (): void
128128 {
129129 $ queue = [
130130 function (
0 commit comments