Skip to content

Commit

Permalink
removed laminas/laminas-http dependency
Browse files Browse the repository at this point in the history
Signed-off-by: MarioRadu <[email protected]>
  • Loading branch information
MarioRadu committed Nov 27, 2024
1 parent 3b93b12 commit 4536ff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"filp/whoops": "^2.15.4",
"laminas/laminas-coding-standard": "^2.5.0",
"laminas/laminas-development-mode": "^3.12.0",
"laminas/laminas-http": "^2.19.0",
"mezzio/mezzio-tooling": "^2.9.0",
"phpunit/phpunit": "^10.5.9",
"roave/security-advisories": "dev-latest",
Expand Down
6 changes: 3 additions & 3 deletions test/Unit/App/Middleware/AuthMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Dot\Rbac\Guard\Guard\GuardInterface;
use Dot\Rbac\Guard\Options\RbacGuardOptions;
use Dot\Rbac\Guard\Provider\GuardsProviderInterface;
use Fig\Http\Message\StatusCodeInterface;
use Laminas\Diactoros\Response\RedirectResponse;
use Laminas\Http\Response;
use Mezzio\Router\RouterInterface;
use PHPUnit\Framework\MockObject\Exception;
use Psr\Http\Message\ResponseInterface;
Expand Down Expand Up @@ -58,7 +58,7 @@ public function testWillRedirectWhenNotGranted(): void
);
$this->assertInstanceOf(RedirectResponse::class, $response);
$this->assertTrue($response->hasHeader('location'));
$this->assertEquals(Response::STATUS_CODE_302, $response->getStatusCode());
$this->assertEquals(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
}

/**
Expand Down Expand Up @@ -144,7 +144,7 @@ public function getPriority(): int
);
$this->assertInstanceOf(RedirectResponse::class, $response);
$this->assertTrue($response->hasHeader('location'));
$this->assertEquals(Response::STATUS_CODE_302, $response->getStatusCode());
$this->assertEquals(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
}

/**
Expand Down

0 comments on commit 4536ff5

Please sign in to comment.