Skip to content

Commit

Permalink
phpcbf test/AppTest/Middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbagg1 committed Nov 15, 2023
1 parent 615ab1d commit 6b98701
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function it_sets_a_trace_attribute_if_set_as_a_header(): void
->handle($requestProphecy->reveal())
->willReturn($this->prophesize(ResponseInterface::class)->reveal());

$rtm = new RequestTracingMiddleware($containerProphecy->reveal());
$rtm = new RequestTracingMiddleware($containerProphecy->reveal());
$response = $rtm->process($requestProphecy->reveal(), $delegateProphecy->reveal());
}

Expand All @@ -50,7 +50,7 @@ public function trace_id_is_blank_if_no_header(): void
->handle($requestProphecy->reveal())
->willReturn($this->prophesize(ResponseInterface::class)->reveal());

$rtm = new RequestTracingMiddleware($containerProphecy->reveal());
$rtm = new RequestTracingMiddleware($containerProphecy->reveal());
$response = $rtm->process($requestProphecy->reveal(), $delegateProphecy->reveal());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function it_correctly_handles_a_successful_response(): void
->willReturn($responseProphecy->reveal());

$middleware = new ProblemDetailsMiddleware($loggerProphecy->reveal());
$response = $middleware->process($requestProphecy->reveal(), $delegateProphecy->reveal());
$response = $middleware->process($requestProphecy->reveal(), $delegateProphecy->reveal());

$this->assertInstanceOf(ResponseInterface::class, $response);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UserIdentificationMiddlewareTest extends TestCase
/** @test */
public function it_correctly_produces_a_successful_response(): void
{
$requestProphecy = $this->prophesize(ServerRequestInterface::class);
$requestProphecy = $this->prophesize(ServerRequestInterface::class);
$delegateProphecy = $this->prophesize(DelegateInterface::class);

$requestProphecy->getHeader('User-Token')
Expand All @@ -41,7 +41,7 @@ public function it_correctly_produces_a_successful_response(): void
/** @test */
public function it_throws_an_unauthorized_exception_when_no_user_token(): void
{
$requestProphecy = $this->prophesize(ServerRequestInterface::class);
$requestProphecy = $this->prophesize(ServerRequestInterface::class);
$delegateProphecy = $this->prophesize(DelegateInterface::class);

$requestProphecy->getHeader('User-Token')
Expand Down

0 comments on commit 6b98701

Please sign in to comment.