Add support to load openswoole-specific config via env vars

This commit is contained in:
Alejandro Celaya
2023-01-12 19:26:36 +01:00
parent d75be372cb
commit 21863e8de6
6 changed files with 9 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ class NotFoundRedirectResolverTest extends TestCase
RouteResult::class,
RouteResult::fromRoute(
new Route(
'',
'foo',
$this->createMock(MiddlewareInterface::class),
['GET'],
$routeName,

View File

@@ -55,7 +55,7 @@ class NotFoundTemplateHandlerTest extends TestCase
RouteResult::class,
RouteResult::fromRoute(
new Route(
'',
'foo',
$this->createMock(MiddlewareInterface::class),
['GET'],
RedirectAction::class,

View File

@@ -95,7 +95,7 @@ class AuthenticationMiddlewareTest extends TestCase
{
$baseRequest = fn (string $routeName) => ServerRequestFactory::fromGlobals()->withAttribute(
RouteResult::class,
RouteResult::fromRoute(new Route($routeName, $this->getDummyMiddleware()), []),
RouteResult::fromRoute(new Route($routeName, $this->getDummyMiddleware())), // @phpstan-ignore-line
);
$apiKeyMessage = 'Expected one of the following authentication headers, ["X-Api-Key"], but none were provided';
$queryMessage = 'Expected authentication to be provided in "apiKey" query param';