Skip to content

Commit

Permalink
update immutability test
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbaturin committed Oct 25, 2024
1 parent 0479e23 commit bd68624
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/Middleware/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,9 @@ public function testImmutability(): void
{
$original = $this->createRouterMiddleware();

$this->assertNotSame(
$original,
$original
->ignoreMethodFailureHandle()
->withNotAllowedResponseFactory($this->createNotAllowedResponseFactory())
->withOptionsResponseFactory($this->createOptionsResponseFactory())
);
$this->assertNotSame($original, $original->ignoreMethodFailureHandle());
$this->assertNotSame($original, $original->withNotAllowedResponseFactory($this->createNotAllowedResponseFactory()));
$this->assertNotSame($original, $original->withOptionsResponseFactory($this->createOptionsResponseFactory()));
}

private function getMatcher(?RouteCollectionInterface $routeCollection = null): UrlMatcherInterface
Expand Down

0 comments on commit bd68624

Please sign in to comment.