Skip to content

Commit 639e922

Browse files
committed
wip
1 parent 9f947d4 commit 639e922

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello

tests/Integration/Mapper/PsrRequestToRequestMapperTest.php renamed to tests/Integration/Route/PsrRequestToGenericRequestMapperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Tempest\Integration\Mapper;
5+
namespace Integration\Route;
66

77
use Laminas\Diactoros\ServerRequest;
88
use Laminas\Diactoros\Stream;
@@ -19,7 +19,7 @@
1919
/**
2020
* @internal
2121
*/
22-
final class PsrRequestToRequestMapperTest extends FrameworkIntegrationTestCase
22+
final class PsrRequestToGenericRequestMapperTest extends FrameworkIntegrationTestCase
2323
{
2424
private Encrypter $encrypter {
2525
get => $this->container->get(Encrypter::class);

tests/Integration/Route/RequestTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ public function test_request_get(): void
6868

6969
public function test_from_factory(): void
7070
{
71+
$_COOKIE = [];
72+
7173
$_SERVER['REQUEST_METHOD'] = Method::POST->value;
7274
$_SERVER['REQUEST_URI'] = '/test';
7375
$_SERVER['HTTP_X-TEST'] = 'test';
@@ -84,7 +86,6 @@ public function test_from_factory(): void
8486
$this->assertEquals('/test', $request->getUri()->getPath());
8587
$this->assertEquals(['test' => 'test'], $request->getParsedBody());
8688
$this->assertEquals(['x-test' => ['test']], $request->getHeaders());
87-
8889
$this->assertCount(1, $request->getCookieParams());
8990
$this->assertArrayHasKey('test', $request->getCookieParams());
9091
$this->assertSame('test', $this->container->get(Encrypter::class)->decrypt($request->getCookieParams()['test']));

0 commit comments

Comments
 (0)