Skip to content

Commit 73e7366

Browse files
authored
Merge pull request #307 from dotkernel/issue-306
Removed laminas/laminas-http dependency
2 parents 3b93b12 + 4536ff5 commit 73e7366

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"filp/whoops": "^2.15.4",
6060
"laminas/laminas-coding-standard": "^2.5.0",
6161
"laminas/laminas-development-mode": "^3.12.0",
62-
"laminas/laminas-http": "^2.19.0",
6362
"mezzio/mezzio-tooling": "^2.9.0",
6463
"phpunit/phpunit": "^10.5.9",
6564
"roave/security-advisories": "dev-latest",

test/Unit/App/Middleware/AuthMiddlewareTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Dot\Rbac\Guard\Guard\GuardInterface;
1212
use Dot\Rbac\Guard\Options\RbacGuardOptions;
1313
use Dot\Rbac\Guard\Provider\GuardsProviderInterface;
14+
use Fig\Http\Message\StatusCodeInterface;
1415
use Laminas\Diactoros\Response\RedirectResponse;
15-
use Laminas\Http\Response;
1616
use Mezzio\Router\RouterInterface;
1717
use PHPUnit\Framework\MockObject\Exception;
1818
use Psr\Http\Message\ResponseInterface;
@@ -58,7 +58,7 @@ public function testWillRedirectWhenNotGranted(): void
5858
);
5959
$this->assertInstanceOf(RedirectResponse::class, $response);
6060
$this->assertTrue($response->hasHeader('location'));
61-
$this->assertEquals(Response::STATUS_CODE_302, $response->getStatusCode());
61+
$this->assertEquals(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
6262
}
6363

6464
/**
@@ -144,7 +144,7 @@ public function getPriority(): int
144144
);
145145
$this->assertInstanceOf(RedirectResponse::class, $response);
146146
$this->assertTrue($response->hasHeader('location'));
147-
$this->assertEquals(Response::STATUS_CODE_302, $response->getStatusCode());
147+
$this->assertEquals(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode());
148148
}
149149

150150
/**

0 commit comments

Comments
 (0)