From 97ec21464d4d25623d010dfb92ca5a819c4eb9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 26 Nov 2025 10:45:44 +0100 Subject: [PATCH 1/4] Replace assertEquals with assertSame --- tests/HookTest.php | 20 ++-- tests/HttpTest.php | 50 ++++----- tests/RequestTest.php | 190 +++++++++++++++++----------------- tests/ResponseTest.php | 32 +++--- tests/RouteTest.php | 24 ++--- tests/RouterTest.php | 60 +++++------ tests/e2e/BaseTest.php | 56 +++++----- tests/e2e/ResponseFPMTest.php | 20 ++-- 8 files changed, 226 insertions(+), 226 deletions(-) diff --git a/tests/HookTest.php b/tests/HookTest.php index e393c3ef..513c460a 100644 --- a/tests/HookTest.php +++ b/tests/HookTest.php @@ -22,32 +22,32 @@ public function setUp(): void public function testDescriptionCanBeSet() { - $this->assertEquals('', $this->hook->getDesc()); + $this->assertSame('', $this->hook->getDesc()); $this->hook->desc('new hook'); - $this->assertEquals('new hook', $this->hook->getDesc()); + $this->assertSame('new hook', $this->hook->getDesc()); } public function testGroupsCanBeSet() { - $this->assertEquals([], $this->hook->getGroups()); + $this->assertSame([], $this->hook->getGroups()); $this->hook->groups(['api', 'homepage']); - $this->assertEquals(['api', 'homepage'], $this->hook->getGroups()); + $this->assertSame(['api', 'homepage'], $this->hook->getGroups()); } public function testActionCanBeSet() { $this->hook->action(fn () => 'hello world'); $this->assertIsCallable($this->hook->getAction()); - $this->assertEquals('hello world', $this->hook->getAction()()); + $this->assertSame('hello world', $this->hook->getAction()()); } public function testParamCanBeSet() { - $this->assertEquals([], $this->hook->getParams()); + $this->assertSame([], $this->hook->getParams()); $this->hook ->param('x', '', new Text(10)) @@ -89,12 +89,12 @@ public function testResourcesCanBeInjected() $result = $context->inject($main); - $this->assertEquals('user:00:00:00', $result); + $this->assertSame('user:00:00:00', $result); } public function testParamValuesCanBeSet() { - $this->assertEquals([], $this->hook->getParams()); + $this->assertSame([], $this->hook->getParams()); $values = [ 'x' => 'hello', @@ -110,8 +110,8 @@ public function testParamValuesCanBeSet() } $this->assertCount(2, $this->hook->getParams()); - $this->assertEquals('hello', $this->hook->getParams()['x']['value']); - $this->assertEquals('world', $this->hook->getParams()['y']['value']); + $this->assertSame('hello', $this->hook->getParams()['x']['value']); + $this->assertSame('world', $this->hook->getParams()['y']['value']); } public function tearDown(): void diff --git a/tests/HttpTest.php b/tests/HttpTest.php index 63324cd2..fb6e4e0e 100755 --- a/tests/HttpTest.php +++ b/tests/HttpTest.php @@ -77,21 +77,21 @@ public function testCanGetDifferentModes(): void Http::setMode(Http::MODE_TYPE_PRODUCTION); - $this->assertEquals(Http::MODE_TYPE_PRODUCTION, Http::getMode()); + $this->assertSame(Http::MODE_TYPE_PRODUCTION, Http::getMode()); $this->assertTrue(Http::isProduction()); $this->assertFalse(Http::isDevelopment()); $this->assertFalse(Http::isStage()); Http::setMode(Http::MODE_TYPE_DEVELOPMENT); - $this->assertEquals(Http::MODE_TYPE_DEVELOPMENT, Http::getMode()); + $this->assertSame(Http::MODE_TYPE_DEVELOPMENT, Http::getMode()); $this->assertFalse(Http::isProduction()); $this->assertTrue(Http::isDevelopment()); $this->assertFalse(Http::isStage()); Http::setMode(Http::MODE_TYPE_STAGE); - $this->assertEquals(Http::MODE_TYPE_STAGE, Http::getMode()); + $this->assertSame(Http::MODE_TYPE_STAGE, Http::getMode()); $this->assertFalse(Http::isProduction()); $this->assertFalse(Http::isDevelopment()); $this->assertTrue(Http::isStage()); @@ -136,7 +136,7 @@ public function testCanExecuteRoute(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('x-def-y-def', $result); + $this->assertSame('x-def-y-def', $result); } public function testCanExecuteRouteWithParams(): void @@ -191,7 +191,7 @@ public function testCanExecuteRouteWithParams(): void $result = \ob_get_contents(); \ob_end_clean(); $resource = $context->get('rand'); - $this->assertEquals($resource . '-param-x-param-y', $result); + $this->assertSame($resource . '-param-x-param-y', $result); } public function testCanExecuteRouteWithParamsWithError(): void @@ -240,7 +240,7 @@ public function testCanExecuteRouteWithParamsWithError(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('error: Invalid `x` param: Value must be a valid string and no longer than 1 chars', $result); + $this->assertSame('error: Invalid `x` param: Value must be a valid string and no longer than 1 chars', $result); } public function testCanExecuteRouteWithParamsWithHooks(): void @@ -345,7 +345,7 @@ public function testCanExecuteRouteWithParamsWithHooks(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('init-' . $resource . '-(init-api)-param-x-param-y-(shutdown-api)-shutdown', $result); + $this->assertSame('init-' . $resource . '-(init-api)-param-x-param-y-(shutdown-api)-shutdown', $result); $context = clone $this->context; @@ -376,7 +376,7 @@ public function testCanExecuteRouteWithParamsWithHooks(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('init-' . $resource . '-(init-homepage)-param-x*param-y-(shutdown-homepage)-shutdown', $result); + $this->assertSame('init-' . $resource . '-(init-homepage)-param-x*param-y-(shutdown-homepage)-shutdown', $result); } public function testCanAddAndExecuteHooks() @@ -420,7 +420,7 @@ public function testCanAddAndExecuteHooks() $this->http->run($context); $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('(init)-x-def-(shutdown)', $result); + $this->assertSame('(init)-x-def-(shutdown)', $result); // Default Params $route = $this->http->addRoute('GET', '/path-4'); @@ -450,7 +450,7 @@ public function testCanAddAndExecuteHooks() $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('x-def', $result); + $this->assertSame('x-def', $result); } public function testAllowRouteOverrides() @@ -468,7 +468,7 @@ public function testAllowRouteOverrides() $this->fail('Failed to throw exception'); } catch (\Exception $e) { // Threw exception as expected - $this->assertEquals('Route for (GET:) already registered.', $e->getMessage()); + $this->assertSame('Route for (GET:) already registered.', $e->getMessage()); } // Test success @@ -533,7 +533,7 @@ public function testCanHookThrowExceptions() $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('error: Param "y" is not optional.', $result); + $this->assertSame('error: Param "y" is not optional.', $result); $context = clone $this->context; @@ -555,7 +555,7 @@ public function testCanHookThrowExceptions() $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('(init)-y-def-x-def-(shutdown)', $result); + $this->assertSame('(init)-y-def-x-def-(shutdown)', $result); } public function providerRouteMatching(): array @@ -606,7 +606,7 @@ public function testCanMatchRoute(string $method, string $path, ?string $url = n $_SERVER['REQUEST_URI'] = $url; $route = $this->http->match(new Request()); - $this->assertEquals($expected, $route); + $this->assertSame($expected, $route); } public function testMatchWithNullPath(): void @@ -619,7 +619,7 @@ public function testMatchWithNullPath(): void $_SERVER['REQUEST_URI'] = '?param=1'; // This will cause parse_url to return null for PATH component $matched = $this->http->match(new Request()); - $this->assertEquals($expected, $matched); + $this->assertSame($expected, $matched); } public function testMatchWithEmptyPath(): void @@ -632,7 +632,7 @@ public function testMatchWithEmptyPath(): void $_SERVER['REQUEST_URI'] = 'https://example.com'; // No path component $matched = $this->http->match(new Request()); - $this->assertEquals($expected, $matched); + $this->assertSame($expected, $matched); } public function testMatchWithMalformedURL(): void @@ -645,7 +645,7 @@ public function testMatchWithMalformedURL(): void $_SERVER['REQUEST_URI'] = '#fragment'; // Malformed scheme $matched = $this->http->match(new Request()); - $this->assertEquals($expected, $matched); + $this->assertSame($expected, $matched); } public function testMatchWithOnlyQueryString(): void @@ -658,7 +658,7 @@ public function testMatchWithOnlyQueryString(): void $_SERVER['REQUEST_URI'] = '?param=value'; // Only query string, no path $matched = $this->http->match(new Request()); - $this->assertEquals($expected, $matched); + $this->assertSame($expected, $matched); } public function testNoMismatchRoute(): void @@ -697,8 +697,8 @@ public function testNoMismatchRoute(): void $this->http->run($context); - $this->assertEquals($_SERVER['REQUEST_METHOD'], $context->get('route')->getMethod()); - $this->assertEquals($_SERVER['REQUEST_URI'], $context->get('route')->getPath()); + $this->assertSame($_SERVER['REQUEST_METHOD'], $context->get('route')->getMethod()); + $this->assertSame($_SERVER['REQUEST_URI'], $context->get('route')->getPath()); } } @@ -778,7 +778,7 @@ public function testWildcardRoute(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('HELLO', $result); + $this->assertSame('HELLO', $result); \ob_start(); $context->get('request')->setMethod('OPTIONS'); @@ -786,7 +786,7 @@ public function testWildcardRoute(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('', $result); + $this->assertSame('', $result); $_SERVER['REQUEST_METHOD'] = $method; $_SERVER['REQUEST_URI'] = $uri; @@ -811,7 +811,7 @@ public function testCallableStringParametersNotExecuted(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('callback-value: phpinfo', $result); + $this->assertSame('callback-value: phpinfo', $result); // Test with request parameter that is a callable string $route2 = new Route('GET', '/test-callable-string-param'); @@ -830,7 +830,7 @@ public function testCallableStringParametersNotExecuted(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('func-value: system', $result); + $this->assertSame('func-value: system', $result); // Test callable closure still works $route3 = new Route('GET', '/test-callable-closure'); @@ -849,6 +849,6 @@ public function testCallableStringParametersNotExecuted(): void $result = \ob_get_contents(); \ob_end_clean(); - $this->assertEquals('generated: generated-value', $result); + $this->assertSame('generated: generated-value', $result); } } diff --git a/tests/RequestTest.php b/tests/RequestTest.php index 6138ae78..80425fe8 100755 --- a/tests/RequestTest.php +++ b/tests/RequestTest.php @@ -24,14 +24,14 @@ public function testCanGetHeaders() $_SERVER['HTTP_CUSTOM'] = 'value1'; $_SERVER['HTTP_CUSTOM_NEW'] = 'value2'; - $this->assertEquals('value1', $this->request->getHeader('custom')); - $this->assertEquals('value2', $this->request->getHeader('custom-new')); + $this->assertSame('value1', $this->request->getHeader('custom')); + $this->assertSame('value2', $this->request->getHeader('custom-new')); $headers = $this->request->getHeaders(); $this->assertIsArray($headers); $this->assertCount(2, $headers); - $this->assertEquals('value1', $headers['custom']); - $this->assertEquals('value2', $headers['custom-new']); + $this->assertSame('value1', $headers['custom']); + $this->assertSame('value2', $headers['custom-new']); } public function testCanAddHeaders() @@ -39,8 +39,8 @@ public function testCanAddHeaders() $this->request->addHeader('custom', 'value1'); $this->request->addHeader('custom-new', 'value2'); - $this->assertEquals('value1', $this->request->getHeader('custom')); - $this->assertEquals('value2', $this->request->getHeader('custom-new')); + $this->assertSame('value1', $this->request->getHeader('custom')); + $this->assertSame('value2', $this->request->getHeader('custom-new')); } public function testCanRemoveHeaders() @@ -48,71 +48,71 @@ public function testCanRemoveHeaders() $this->request->addHeader('custom', 'value1'); $this->request->addHeader('custom-new', 'value2'); - $this->assertEquals('value1', $this->request->getHeader('custom')); - $this->assertEquals('value2', $this->request->getHeader('custom-new')); + $this->assertSame('value1', $this->request->getHeader('custom')); + $this->assertSame('value2', $this->request->getHeader('custom-new')); $this->request->removeHeader('custom'); - $this->assertEquals(null, $this->request->getHeader('custom')); - $this->assertEquals('value2', $this->request->getHeader('custom-new')); + $this->assertSame(null, $this->request->getHeader('custom')); + $this->assertSame('value2', $this->request->getHeader('custom-new')); } public function testCanGetQueryParameter() { $_GET['key'] = 'value'; - $this->assertEquals($this->request->getQuery('key'), 'value'); - $this->assertEquals($this->request->getQuery('unknown', 'test'), 'test'); + $this->assertSame($this->request->getQuery('key'), 'value'); + $this->assertSame($this->request->getQuery('unknown', 'test'), 'test'); } public function testCanSetQuery() { $this->request->setQuery(['key' => 'value']); - $this->assertEquals($this->request->getQuery('key'), 'value'); - $this->assertEquals($this->request->getQuery('unknown', 'test'), 'test'); + $this->assertSame($this->request->getQuery('key'), 'value'); + $this->assertSame($this->request->getQuery('unknown', 'test'), 'test'); } public function testCanGetPayload() { - $this->assertEquals($this->request->getPayload('unknown', 'test'), 'test'); + $this->assertSame($this->request->getPayload('unknown', 'test'), 'test'); } public function testCanSetPayload() { $this->request->setPayload(['key' => 'value']); - $this->assertEquals($this->request->getPayload('key'), 'value'); - $this->assertEquals($this->request->getPayload('unknown', 'test'), 'test'); + $this->assertSame($this->request->getPayload('key'), 'value'); + $this->assertSame($this->request->getPayload('unknown', 'test'), 'test'); } public function testCanGetRawPayload() { - $this->assertEquals($this->request->getRawPayload(), ''); + $this->assertSame($this->request->getRawPayload(), ''); } public function testCanGetServer() { $_SERVER['key'] = 'value'; - $this->assertEquals($this->request->getServer('key'), 'value'); - $this->assertEquals($this->request->getServer('unknown', 'test'), 'test'); + $this->assertSame($this->request->getServer('key'), 'value'); + $this->assertSame($this->request->getServer('unknown', 'test'), 'test'); } public function testCanSetServer() { $this->request->setServer('key', 'value'); - $this->assertEquals($this->request->getServer('key'), 'value'); - $this->assertEquals($this->request->getServer('unknown', 'test'), 'test'); + $this->assertSame($this->request->getServer('key'), 'value'); + $this->assertSame($this->request->getServer('unknown', 'test'), 'test'); } public function testCanGetCookie() { $_COOKIE['key'] = 'value'; - $this->assertEquals($this->request->getCookie('key'), 'value'); - $this->assertEquals($this->request->getCookie('unknown', 'test'), 'test'); + $this->assertSame($this->request->getCookie('key'), 'value'); + $this->assertSame($this->request->getCookie('unknown', 'test'), 'test'); } public function testCanGetProtocol() @@ -120,7 +120,7 @@ public function testCanGetProtocol() $_SERVER['HTTP_X_FORWARDED_PROTO'] = null; $_SERVER['REQUEST_SCHEME'] = 'http'; - $this->assertEquals('http', $this->request->getProtocol()); + $this->assertSame('http', $this->request->getProtocol()); } public function testCanGetForwardedProtocol() @@ -128,205 +128,205 @@ public function testCanGetForwardedProtocol() $_SERVER['HTTP_X_FORWARDED_PROTO'] = 'https'; $_SERVER['REQUEST_SCHEME'] = 'http'; - $this->assertEquals('https', $this->request->getProtocol()); + $this->assertSame('https', $this->request->getProtocol()); } public function testCanGetMethod() { - $this->assertEquals('UNKNOWN', $this->request->getMethod()); + $this->assertSame('UNKNOWN', $this->request->getMethod()); $_SERVER['REQUEST_METHOD'] = 'GET'; - $this->assertEquals('GET', $this->request->getMethod()); + $this->assertSame('GET', $this->request->getMethod()); } public function testCanGetUri() { - $this->assertEquals('', $this->request->getURI()); + $this->assertSame('', $this->request->getURI()); $_SERVER['REQUEST_URI'] = '/index.html'; - $this->assertEquals('/index.html', $this->request->getURI()); + $this->assertSame('/index.html', $this->request->getURI()); } public function testCanSetUri() { $this->request->setURI('/page.html'); - $this->assertEquals('/page.html', $this->request->getURI()); + $this->assertSame('/page.html', $this->request->getURI()); } public function testCanGetQueryString() { - $this->assertEquals('', $this->request->getQueryString()); + $this->assertSame('', $this->request->getQueryString()); $_SERVER['QUERY_STRING'] = 'text=hello&value=key'; - $this->assertEquals('text=hello&value=key', $this->request->getQueryString()); + $this->assertSame('text=hello&value=key', $this->request->getQueryString()); } public function testCanSetQueryString() { $this->request->setURI('text=hello&value=key'); - $this->assertEquals('text=hello&value=key', $this->request->getURI()); + $this->assertSame('text=hello&value=key', $this->request->getURI()); } public function testCanGetPort() { $_SERVER['HTTP_HOST'] = 'localhost:8080'; - $this->assertEquals('8080', $this->request->getPort()); + $this->assertSame('8080', $this->request->getPort()); $_SERVER['HTTP_HOST'] = 'localhost'; - $this->assertEquals('', $this->request->getPort()); + $this->assertSame('', $this->request->getPort()); } public function testCanGetHostname() { $_SERVER['HTTP_HOST'] = 'localhost'; - $this->assertEquals('localhost', $this->request->getHostname()); + $this->assertSame('localhost', $this->request->getHostname()); } public function testCanGetHostnameWithPort() { $_SERVER['HTTP_HOST'] = 'localhost:8080'; - $this->assertEquals('localhost', $this->request->getHostname()); + $this->assertSame('localhost', $this->request->getHostname()); } public function testCanGetReferer() { - $this->assertEquals('default', $this->request->getReferer('default')); + $this->assertSame('default', $this->request->getReferer('default')); $_SERVER['HTTP_REFERER'] = 'referer'; - $this->assertEquals('referer', $this->request->getReferer('default')); + $this->assertSame('referer', $this->request->getReferer('default')); } public function testCanGetOrigin() { - $this->assertEquals('default', $this->request->getOrigin('default')); + $this->assertSame('default', $this->request->getOrigin('default')); $_SERVER['HTTP_ORIGIN'] = 'origin'; - $this->assertEquals('origin', $this->request->getOrigin('default')); + $this->assertSame('origin', $this->request->getOrigin('default')); } public function testCanGetUserAgent() { - $this->assertEquals('default', $this->request->getUserAgent('default')); + $this->assertSame('default', $this->request->getUserAgent('default')); $_SERVER['HTTP_USER_AGENT'] = 'user-agent'; - $this->assertEquals('user-agent', $this->request->getUserAgent('default')); + $this->assertSame('user-agent', $this->request->getUserAgent('default')); } public function testCanGetAccept() { - $this->assertEquals('default', $this->request->getAccept('default')); + $this->assertSame('default', $this->request->getAccept('default')); $_SERVER['HTTP_ACCEPT'] = 'accept'; - $this->assertEquals('accept', $this->request->getAccept('default')); + $this->assertSame('accept', $this->request->getAccept('default')); } public function testCanGetContentRange() { $_SERVER['HTTP_CONTENT_RANGE'] = 'bytes 0-499/2000'; - $this->assertEquals('bytes', $this->request->getContentRangeUnit()); - $this->assertEquals(0, $this->request->getContentRangeStart()); - $this->assertEquals(499, $this->request->getContentRangeEnd()); - $this->assertEquals(2000, $this->request->getContentRangeSize()); + $this->assertSame('bytes', $this->request->getContentRangeUnit()); + $this->assertSame(0, $this->request->getContentRangeStart()); + $this->assertSame(499, $this->request->getContentRangeEnd()); + $this->assertSame(2000, $this->request->getContentRangeSize()); $_SERVER['HTTP_CONTENT_RANGE'] = ' 0-499/2000'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getContentRangeUnit()); - $this->assertEquals(null, $this->request->getContentRangeStart()); - $this->assertEquals(null, $this->request->getContentRangeEnd()); - $this->assertEquals(null, $this->request->getContentRangeSize()); + $this->assertSame(null, $this->request->getContentRangeUnit()); + $this->assertSame(null, $this->request->getContentRangeStart()); + $this->assertSame(null, $this->request->getContentRangeEnd()); + $this->assertSame(null, $this->request->getContentRangeSize()); $_SERVER['HTTP_CONTENT_RANGE'] = 'bytes 0-499/'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getContentRangeUnit()); - $this->assertEquals(null, $this->request->getContentRangeStart()); - $this->assertEquals(null, $this->request->getContentRangeEnd()); - $this->assertEquals(null, $this->request->getContentRangeSize()); + $this->assertSame(null, $this->request->getContentRangeUnit()); + $this->assertSame(null, $this->request->getContentRangeStart()); + $this->assertSame(null, $this->request->getContentRangeEnd()); + $this->assertSame(null, $this->request->getContentRangeSize()); $_SERVER['HTTP_CONTENT_RANGE'] = 'bytes 0--499/2000'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getContentRangeUnit()); - $this->assertEquals(null, $this->request->getContentRangeStart()); - $this->assertEquals(null, $this->request->getContentRangeEnd()); - $this->assertEquals(null, $this->request->getContentRangeSize()); + $this->assertSame(null, $this->request->getContentRangeUnit()); + $this->assertSame(null, $this->request->getContentRangeStart()); + $this->assertSame(null, $this->request->getContentRangeEnd()); + $this->assertSame(null, $this->request->getContentRangeSize()); $_SERVER['HTTP_CONTENT_RANGE'] = 'bytes 0-499test/2000'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getContentRangeUnit()); - $this->assertEquals(null, $this->request->getContentRangeStart()); - $this->assertEquals(null, $this->request->getContentRangeEnd()); - $this->assertEquals(null, $this->request->getContentRangeSize()); + $this->assertSame(null, $this->request->getContentRangeUnit()); + $this->assertSame(null, $this->request->getContentRangeStart()); + $this->assertSame(null, $this->request->getContentRangeEnd()); + $this->assertSame(null, $this->request->getContentRangeSize()); $_SERVER['HTTP_CONTENT_RANGE'] = 'bytes 0-49.9/200.0'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getContentRangeUnit()); - $this->assertEquals(null, $this->request->getContentRangeStart()); - $this->assertEquals(null, $this->request->getContentRangeEnd()); - $this->assertEquals(null, $this->request->getContentRangeSize()); + $this->assertSame(null, $this->request->getContentRangeUnit()); + $this->assertSame(null, $this->request->getContentRangeStart()); + $this->assertSame(null, $this->request->getContentRangeEnd()); + $this->assertSame(null, $this->request->getContentRangeSize()); $_SERVER['HTTP_CONTENT_RANGE'] = 'bytes 0-49,9/200,0'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getContentRangeUnit()); - $this->assertEquals(null, $this->request->getContentRangeStart()); - $this->assertEquals(null, $this->request->getContentRangeEnd()); - $this->assertEquals(null, $this->request->getContentRangeSize()); + $this->assertSame(null, $this->request->getContentRangeUnit()); + $this->assertSame(null, $this->request->getContentRangeStart()); + $this->assertSame(null, $this->request->getContentRangeEnd()); + $this->assertSame(null, $this->request->getContentRangeSize()); } public function testCanGetRange() { $_SERVER['HTTP_RANGE'] = 'bytes=0-499'; - $this->assertEquals('bytes', $this->request->getRangeUnit()); - $this->assertEquals(0, $this->request->getRangeStart()); - $this->assertEquals(499, $this->request->getRangeEnd()); + $this->assertSame('bytes', $this->request->getRangeUnit()); + $this->assertSame(0, $this->request->getRangeStart()); + $this->assertSame(499, $this->request->getRangeEnd()); $_SERVER['HTTP_RANGE'] = ' 0-499'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getRangeUnit()); - $this->assertEquals(null, $this->request->getRangeStart()); - $this->assertEquals(null, $this->request->getRangeEnd()); + $this->assertSame(null, $this->request->getRangeUnit()); + $this->assertSame(null, $this->request->getRangeStart()); + $this->assertSame(null, $this->request->getRangeEnd()); $_SERVER['HTTP_RANGE'] = 'bytes=0-'; $this->request = new Request(); - $this->assertEquals('bytes', $this->request->getRangeUnit()); - $this->assertEquals(0, $this->request->getRangeStart()); - $this->assertEquals(null, $this->request->getRangeEnd()); + $this->assertSame('bytes', $this->request->getRangeUnit()); + $this->assertSame(0, $this->request->getRangeStart()); + $this->assertSame(null, $this->request->getRangeEnd()); $_SERVER['HTTP_RANGE'] = 'bytes=0--499'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getRangeUnit()); - $this->assertEquals(null, $this->request->getRangeStart()); - $this->assertEquals(null, $this->request->getRangeEnd()); + $this->assertSame(null, $this->request->getRangeUnit()); + $this->assertSame(null, $this->request->getRangeStart()); + $this->assertSame(null, $this->request->getRangeEnd()); $_SERVER['HTTP_RANGE'] = 'bytes=0-499test'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getRangeUnit()); - $this->assertEquals(null, $this->request->getRangeStart()); - $this->assertEquals(null, $this->request->getRangeEnd()); + $this->assertSame(null, $this->request->getRangeUnit()); + $this->assertSame(null, $this->request->getRangeStart()); + $this->assertSame(null, $this->request->getRangeEnd()); $_SERVER['HTTP_RANGE'] = 'bytes=0-49.9'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getRangeUnit()); - $this->assertEquals(null, $this->request->getRangeStart()); - $this->assertEquals(null, $this->request->getRangeEnd()); + $this->assertSame(null, $this->request->getRangeUnit()); + $this->assertSame(null, $this->request->getRangeStart()); + $this->assertSame(null, $this->request->getRangeEnd()); $_SERVER['HTTP_RANGE'] = 'bytes=0-49,9'; $this->request = new Request(); - $this->assertEquals(null, $this->request->getRangeUnit()); - $this->assertEquals(null, $this->request->getRangeStart()); - $this->assertEquals(null, $this->request->getRangeEnd()); + $this->assertSame(null, $this->request->getRangeUnit()); + $this->assertSame(null, $this->request->getRangeStart()); + $this->assertSame(null, $this->request->getRangeEnd()); } } diff --git a/tests/ResponseTest.php b/tests/ResponseTest.php index e992f458..be92f3f5 100755 --- a/tests/ResponseTest.php +++ b/tests/ResponseTest.php @@ -52,19 +52,19 @@ public function testCanGetStatus() // Assertions $this->assertInstanceOf('Utopia\Http\Response', $status); - $this->assertEquals(Response::STATUS_CODE_OK, $this->response->getStatusCode()); + $this->assertSame(Response::STATUS_CODE_OK, $this->response->getStatusCode()); } public function testCanAddHeader() { $result = $this->response->addHeader('key', 'value'); - $this->assertEquals($this->response, $result); + $this->assertSame($this->response, $result); } public function testCanAddCookie() { $result = $this->response->addCookie('name', 'value'); - $this->assertEquals($this->response, $result); + $this->assertSame($this->response, $result); //test cookie case insensitive $result = $this->response->addCookie('cookieName', 'cookieValue'); @@ -84,7 +84,7 @@ public function testCanSend() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('body', $html); + $this->assertSame('body', $html); } public function testCanSendRedirect() @@ -96,7 +96,7 @@ public function testCanSendRedirect() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('', $html); + $this->assertSame('', $html); ob_start(); //Start of build @@ -105,7 +105,7 @@ public function testCanSendRedirect() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('', $html); + $this->assertSame('', $html); } public function testCanSendText() @@ -117,8 +117,8 @@ public function testCanSendText() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('HELLO WORLD', $html); - $this->assertEquals('text/plain; charset=UTF-8', $this->response->getContentType()); + $this->assertSame('HELLO WORLD', $html); + $this->assertSame('text/plain; charset=UTF-8', $this->response->getContentType()); } public function testCanSendHtml() @@ -130,8 +130,8 @@ public function testCanSendHtml() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('', $html); - $this->assertEquals('text/html; charset=UTF-8', $this->response->getContentType()); + $this->assertSame('', $html); + $this->assertSame('text/html; charset=UTF-8', $this->response->getContentType()); } public function testCanSendJson() @@ -143,8 +143,8 @@ public function testCanSendJson() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('{"key":"value"}', $html); - $this->assertEquals('application/json; charset=UTF-8', $this->response->getContentType()); + $this->assertSame('{"key":"value"}', $html); + $this->assertSame('application/json; charset=UTF-8', $this->response->getContentType()); } public function testCanSendJsonp() @@ -156,8 +156,8 @@ public function testCanSendJsonp() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('parent.test({"key":"value"});', $html); - $this->assertEquals('text/javascript; charset=UTF-8', $this->response->getContentType()); + $this->assertSame('parent.test({"key":"value"});', $html); + $this->assertSame('text/javascript; charset=UTF-8', $this->response->getContentType()); } public function testCanSendIframe() @@ -169,7 +169,7 @@ public function testCanSendIframe() $html = ob_get_contents(); ob_end_clean(); //End of build - $this->assertEquals('', $html); - $this->assertEquals('text/html; charset=UTF-8', $this->response->getContentType()); + $this->assertSame('', $html); + $this->assertSame('text/html; charset=UTF-8', $this->response->getContentType()); } } diff --git a/tests/RouteTest.php b/tests/RouteTest.php index d5a0aeeb..deb5cff3 100755 --- a/tests/RouteTest.php +++ b/tests/RouteTest.php @@ -16,48 +16,48 @@ public function setUp(): void public function testCanGetMethod() { - $this->assertEquals('GET', $this->route->getMethod()); + $this->assertSame('GET', $this->route->getMethod()); } public function testCanGetAndSetPath() { - $this->assertEquals('/', $this->route->getPath()); + $this->assertSame('/', $this->route->getPath()); $this->route->path('/path'); - $this->assertEquals('/path', $this->route->getPath()); + $this->assertSame('/path', $this->route->getPath()); } public function testCanSetAndGetDescription() { - $this->assertEquals('', $this->route->getDesc()); + $this->assertSame('', $this->route->getDesc()); $this->route->desc('new route'); - $this->assertEquals('new route', $this->route->getDesc()); + $this->assertSame('new route', $this->route->getDesc()); } public function testCanSetAndGetGroups() { - $this->assertEquals([], $this->route->getGroups()); + $this->assertSame([], $this->route->getGroups()); $this->route->groups(['api', 'homepage']); - $this->assertEquals(['api', 'homepage'], $this->route->getGroups()); + $this->assertSame(['api', 'homepage'], $this->route->getGroups()); } public function testCanSetAndGetAction() { - $this->assertEquals(null, $this->route->getAction()); + $this->assertSame(null, $this->route->getAction()); $this->route->action(fn () => 'hello world'); - $this->assertEquals('hello world', $this->route->getAction()()); + $this->assertSame('hello world', $this->route->getAction()()); } public function testCanGetAndSetParam() { - $this->assertEquals([], $this->route->getParams()); + $this->assertSame([], $this->route->getParams()); $this->route ->param('x', '', new Text(10)) @@ -68,11 +68,11 @@ public function testCanGetAndSetParam() public function testCanSetAndGetLabels() { - $this->assertEquals('default', $this->route->getLabel('key', 'default')); + $this->assertSame('default', $this->route->getLabel('key', 'default')); $this->route->label('key', 'value'); - $this->assertEquals('value', $this->route->getLabel('key', 'default')); + $this->assertSame('value', $this->route->getLabel('key', 'default')); } public function testCanSetAndGetHooks() diff --git a/tests/RouterTest.php b/tests/RouterTest.php index a400c592..ec671a54 100644 --- a/tests/RouterTest.php +++ b/tests/RouterTest.php @@ -21,9 +21,9 @@ public function testCanMatchUrl(): void Router::addRoute($routeAbout); Router::addRoute($routeAboutMe); - $this->assertEquals($routeIndex, Router::match(Http::REQUEST_METHOD_GET, '/')); - $this->assertEquals($routeAbout, Router::match(Http::REQUEST_METHOD_GET, '/about')); - $this->assertEquals($routeAboutMe, Router::match(Http::REQUEST_METHOD_GET, '/about/me')); + $this->assertSame($routeIndex, Router::match(Http::REQUEST_METHOD_GET, '/')); + $this->assertSame($routeAbout, Router::match(Http::REQUEST_METHOD_GET, '/about')); + $this->assertSame($routeAboutMe, Router::match(Http::REQUEST_METHOD_GET, '/about/me')); } public function testCanMatchUrlWithPlaceholder(): void @@ -42,13 +42,13 @@ public function testCanMatchUrlWithPlaceholder(): void Router::addRoute($routeBlogPostComments); Router::addRoute($routeBlogPostCommentsSingle); - $this->assertEquals($routeBlog, Router::match(Http::REQUEST_METHOD_GET, '/blog')); - $this->assertEquals($routeBlogAuthors, Router::match(Http::REQUEST_METHOD_GET, '/blog/authors')); - $this->assertEquals($routeBlogAuthorsComments, Router::match(Http::REQUEST_METHOD_GET, '/blog/authors/comments')); - $this->assertEquals($routeBlogPost, Router::match(Http::REQUEST_METHOD_GET, '/blog/test')); - $this->assertEquals($routeBlogPostComments, Router::match(Http::REQUEST_METHOD_GET, '/blog/test/comments')); - $this->assertEquals($routeBlogPostCommentsSingle, Router::match(Http::REQUEST_METHOD_GET, '/blog/test/comments/0')); - $this->assertEquals($routeBlogPostCommentsSingle, Router::match(Http::REQUEST_METHOD_GET, '/blog/test/comments/:comment')); + $this->assertSame($routeBlog, Router::match(Http::REQUEST_METHOD_GET, '/blog')); + $this->assertSame($routeBlogAuthors, Router::match(Http::REQUEST_METHOD_GET, '/blog/authors')); + $this->assertSame($routeBlogAuthorsComments, Router::match(Http::REQUEST_METHOD_GET, '/blog/authors/comments')); + $this->assertSame($routeBlogPost, Router::match(Http::REQUEST_METHOD_GET, '/blog/test')); + $this->assertSame($routeBlogPostComments, Router::match(Http::REQUEST_METHOD_GET, '/blog/test/comments')); + $this->assertSame($routeBlogPostCommentsSingle, Router::match(Http::REQUEST_METHOD_GET, '/blog/test/comments/0')); + $this->assertSame($routeBlogPostCommentsSingle, Router::match(Http::REQUEST_METHOD_GET, '/blog/test/comments/:comment')); } public function testCanMatchUrlWithWildcard(): void @@ -61,11 +61,11 @@ public function testCanMatchUrlWithWildcard(): void Router::addRoute($routeAbout); Router::addRoute($routeAboutWildcard); - $this->assertEquals($routeIndex, Router::match('GET', '/')); - $this->assertEquals($routeAbout, Router::match('GET', '/about')); - $this->assertEquals($routeAboutWildcard, Router::match('GET', '/about/me')); - $this->assertEquals($routeAboutWildcard, Router::match('GET', '/about/you')); - $this->assertEquals($routeAboutWildcard, Router::match('GET', '/about/me/myself/i')); + $this->assertSame($routeIndex, Router::match('GET', '/')); + $this->assertSame($routeAbout, Router::match('GET', '/about')); + $this->assertSame($routeAboutWildcard, Router::match('GET', '/about/me')); + $this->assertSame($routeAboutWildcard, Router::match('GET', '/about/you')); + $this->assertSame($routeAboutWildcard, Router::match('GET', '/about/me/myself/i')); } public function testCanMatchHttpMethod(): void @@ -76,8 +76,8 @@ public function testCanMatchHttpMethod(): void Router::addRoute($routeGET); Router::addRoute($routePOST); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/')); - $this->assertEquals($routePOST, Router::match(Http::REQUEST_METHOD_POST, '/')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/')); + $this->assertSame($routePOST, Router::match(Http::REQUEST_METHOD_POST, '/')); $this->assertNotEquals($routeGET, Router::match(Http::REQUEST_METHOD_POST, '/')); $this->assertNotEquals($routePOST, Router::match(Http::REQUEST_METHOD_GET, '/')); @@ -92,9 +92,9 @@ public function testCanMatchAlias(): void Router::addRoute($routeGET); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/target')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/alias')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/alias2')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/target')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/alias')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/alias2')); } public function testCanMatchMix(): void @@ -110,14 +110,14 @@ public function testCanMatchMix(): void Router::addRoute($routeGET); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/console')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/invite')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/login')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/recover')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/console/lorem/ipsum/dolor')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/auth/lorem/ipsum')); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/register/lorem/ipsum')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/console')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/invite')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/login')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/recover')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/console/lorem/ipsum/dolor')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/auth/lorem/ipsum')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/register/lorem/ipsum')); } public function testCanMatchFilename(): void @@ -125,7 +125,7 @@ public function testCanMatchFilename(): void $routeGET = new Route(Http::REQUEST_METHOD_GET, '/robots.txt'); Router::addRoute($routeGET); - $this->assertEquals($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/robots.txt')); + $this->assertSame($routeGET, Router::match(Http::REQUEST_METHOD_GET, '/robots.txt')); } public function testCannotFindUnknownRouteByPath(): void @@ -139,7 +139,7 @@ public function testCannotFindUnknownRouteByMethod(): void Router::addRoute($route); - $this->assertEquals($route, Router::match(Http::REQUEST_METHOD_GET, '/404')); + $this->assertSame($route, Router::match(Http::REQUEST_METHOD_GET, '/404')); $this->assertNull(Router::match(Http::REQUEST_METHOD_POST, '/404')); } diff --git a/tests/e2e/BaseTest.php b/tests/e2e/BaseTest.php index 03db3319..ef578421 100644 --- a/tests/e2e/BaseTest.php +++ b/tests/e2e/BaseTest.php @@ -9,21 +9,21 @@ trait BaseTest public function testResponse() { $response = $this->client->call(Client::METHOD_GET, '/'); - $this->assertEquals('Hello World!', $response['body']); + $this->assertSame('Hello World!', $response['body']); } public function testResponseValue() { $response = $this->client->call(Client::METHOD_GET, '/value/123'); - $this->assertEquals('123', $response['body']); + $this->assertSame('123', $response['body']); } public function testHeaders() { $response = $this->client->call(Client::METHOD_GET, '/headers'); $this->assertGreaterThan(8, count($response['headers'])); - $this->assertEquals('value1', $response['headers']['key1']); - $this->assertEquals('value2', $response['headers']['key2']); + $this->assertSame('value1', $response['headers']['key1']); + $this->assertSame('value2', $response['headers']['key2']); $this->assertNotEmpty($response['body']); } @@ -31,53 +31,53 @@ public function testHead() { $response = $this->client->call(Client::METHOD_HEAD, '/headers'); $this->assertGreaterThan(8, $response['headers']); - $this->assertEquals('value1', $response['headers']['key1']); - $this->assertEquals('value2', $response['headers']['key2']); + $this->assertSame('value1', $response['headers']['key1']); + $this->assertSame('value2', $response['headers']['key2']); $this->assertEmpty(trim($response['body'])); } public function testNoContent() { $response = $this->client->call(Client::METHOD_DELETE, '/no-content'); - $this->assertEquals(204, $response['headers']['status-code']); + $this->assertSame(204, $response['headers']['status-code']); $this->assertEmpty(trim($response['body'])); } public function testChunkResponse() { $response = $this->client->call(Client::METHOD_GET, '/chunked'); - $this->assertEquals('Hello World!', $response['body']); + $this->assertSame('Hello World!', $response['body']); } public function testRedirect() { $response = $this->client->call(Client::METHOD_GET, '/redirect'); - $this->assertEquals('Hello World!', $response['body']); + $this->assertSame('Hello World!', $response['body']); } public function testHumans() { $response = $this->client->call(Client::METHOD_GET, '/humans.txt'); - $this->assertEquals('humans.txt', $response['body']); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals('Utopia', $response['headers']['x-engine']); + $this->assertSame('humans.txt', $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame('Utopia', $response['headers']['x-engine']); } public function testParamInjection() { $response = $this->client->call(Client::METHOD_GET, '/param-injection?param=1234567891011'); - $this->assertEquals(400, $response['headers']['status-code']); + $this->assertSame(400, $response['headers']['status-code']); $this->assertStringStartsWith('Invalid `param` param: Value must be a valid string and at least 1 chars and no longer than 10 chars', $response['body']); $response = $this->client->call(Client::METHOD_GET, '/param-injection?param=test4573'); - $this->assertEquals(200, $response['headers']['status-code']); + $this->assertSame(200, $response['headers']['status-code']); $this->assertStringStartsWith('Hello World!test4573', $response['body']); } public function testNotFound() { $response = $this->client->call(Client::METHOD_GET, '/non-existing-page'); - $this->assertEquals(404, $response['headers']['status-code']); + $this->assertSame(404, $response['headers']['status-code']); $this->assertStringStartsWith('Not Found on ', $response['body']); } @@ -86,14 +86,14 @@ public function testCookie() // One cookie $cookie = 'cookie1=value1'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); // Two cookiees $cookie = 'cookie1=value1; cookie2=value2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); /** * Cookie response always expecting space in multiple cookie @@ -103,27 +103,27 @@ public function testCookie() // Two cookies without optional space $cookie = 'cookie1=value1;cookie2=value2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals('cookie1=value1; cookie2=value2', $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame('cookie1=value1; cookie2=value2', $response['body']); // Cookie with "=" in value $cookie = 'cookie1=value1=value2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); // Case sensitivity for cookie names $cookie = 'cookie1=v1;Cookie1=v2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals('cookie1=v1; Cookie1=v2', $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame('cookie1=v1; Cookie1=v2', $response['body']); } public function testSetCookie() { $response = $this->client->call(Client::METHOD_GET, '/set-cookie'); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals('value1', $response['cookies']['key1']); - $this->assertEquals('value2', $response['cookies']['key2']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame('value1', $response['cookies']['key1']); + $this->assertSame('value2', $response['cookies']['key2']); } } diff --git a/tests/e2e/ResponseFPMTest.php b/tests/e2e/ResponseFPMTest.php index b0f140c2..f5c16a9b 100644 --- a/tests/e2e/ResponseFPMTest.php +++ b/tests/e2e/ResponseFPMTest.php @@ -28,31 +28,31 @@ public function testCookie() // One cookie $cookie = 'cookie1=value1'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); // Two cookies with space (FPM preserves original format) $cookie = 'cookie1=value1; cookie2=value2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); // Two cookies without space (FPM preserves original format) $cookie = 'cookie1=value1;cookie2=value2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); // Cookie with "=" in value $cookie = 'cookie1=value1=value2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); // Case sensitivity for cookie names $cookie = 'cookie1=v1; Cookie1=v2'; $response = $this->client->call(Client::METHOD_GET, '/cookies', [ 'Cookie' => $cookie ]); - $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals($cookie, $response['body']); + $this->assertSame(200, $response['headers']['status-code']); + $this->assertSame($cookie, $response['body']); } } From 1e9c018a9991c55b58c72f250b1f6d8a5c0cd5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 26 Nov 2025 11:20:32 +0100 Subject: [PATCH 2/4] Fix tests --- composer.lock | 223 +++++++++++++++++++++--------------------- tests/RequestTest.php | 2 +- 2 files changed, 115 insertions(+), 110 deletions(-) diff --git a/composer.lock b/composer.lock index d02255f2..f5182612 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "brick/math", - "version": "0.14.0", + "version": "0.14.1", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2" + "reference": "f05858549e5f9d7bb45875a75583240a38a281d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2", - "reference": "113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2", + "url": "https://api.github.com/repos/brick/math/zipball/f05858549e5f9d7bb45875a75583240a38a281d0", + "reference": "f05858549e5f9d7bb45875a75583240a38a281d0", "shasum": "" }, "require": { @@ -56,7 +56,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.14.0" + "source": "https://github.com/brick/math/tree/0.14.1" }, "funding": [ { @@ -64,7 +64,7 @@ "type": "github" } ], - "time": "2025-08-29T12:40:03+00:00" + "time": "2025-11-24T14:40:29+00:00" }, { "name": "composer/semver", @@ -145,16 +145,16 @@ }, { "name": "google/protobuf", - "version": "v4.33.0", + "version": "v4.33.1", "source": { "type": "git", "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "b50269e23204e5ae859a326ec3d90f09efe3047d" + "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/b50269e23204e5ae859a326ec3d90f09efe3047d", - "reference": "b50269e23204e5ae859a326ec3d90f09efe3047d", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/0cd73ccf0cd26c3e72299cce1ea6144091a57e12", + "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12", "shasum": "" }, "require": { @@ -183,9 +183,9 @@ "proto" ], "support": { - "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.0" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.1" }, - "time": "2025-10-15T20:10:28+00:00" + "time": "2025-11-12T21:58:05+00:00" }, { "name": "nyholm/psr7", @@ -333,16 +333,16 @@ }, { "name": "open-telemetry/api", - "version": "1.7.0", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/api.git", - "reference": "610b79ad9d6d97e8368bcb6c4d42394fbb87b522" + "reference": "45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/610b79ad9d6d97e8368bcb6c4d42394fbb87b522", - "reference": "610b79ad9d6d97e8368bcb6c4d42394fbb87b522", + "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4", + "reference": "45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4", "shasum": "" }, "require": { @@ -362,7 +362,7 @@ ] }, "branch-alias": { - "dev-main": "1.7.x-dev" + "dev-main": "1.8.x-dev" } }, "autoload": { @@ -395,11 +395,11 @@ ], "support": { "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", - "docs": "https://opentelemetry.io/docs/php", + "docs": "https://opentelemetry.io/docs/languages/php", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2025-10-02T23:44:28+00:00" + "time": "2025-10-19T10:49:48+00:00" }, { "name": "open-telemetry/context", @@ -462,16 +462,16 @@ }, { "name": "open-telemetry/exporter-otlp", - "version": "1.3.2", + "version": "1.3.3", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/exporter-otlp.git", - "reference": "196f3a1dbce3b2c0f8110d164232c11ac00ddbb2" + "reference": "07b02bc71838463f6edcc78d3485c04b48fb263d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/196f3a1dbce3b2c0f8110d164232c11ac00ddbb2", - "reference": "196f3a1dbce3b2c0f8110d164232c11ac00ddbb2", + "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/07b02bc71838463f6edcc78d3485c04b48fb263d", + "reference": "07b02bc71838463f6edcc78d3485c04b48fb263d", "shasum": "" }, "require": { @@ -518,11 +518,11 @@ ], "support": { "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", - "docs": "https://opentelemetry.io/docs/php", + "docs": "https://opentelemetry.io/docs/languages/php", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2025-06-16T00:24:51+00:00" + "time": "2025-11-13T08:04:37+00:00" }, { "name": "open-telemetry/gen-otlp-protobuf", @@ -589,16 +589,16 @@ }, { "name": "open-telemetry/sdk", - "version": "1.9.0", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/sdk.git", - "reference": "8986bcbcbea79cb1ba9e91c1d621541ad63d6b3e" + "reference": "3dfc3d1ad729ec7eb25f1b9a4ae39fe779affa99" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/8986bcbcbea79cb1ba9e91c1d621541ad63d6b3e", - "reference": "8986bcbcbea79cb1ba9e91c1d621541ad63d6b3e", + "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/3dfc3d1ad729ec7eb25f1b9a4ae39fe779affa99", + "reference": "3dfc3d1ad729ec7eb25f1b9a4ae39fe779affa99", "shasum": "" }, "require": { @@ -678,11 +678,11 @@ ], "support": { "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", - "docs": "https://opentelemetry.io/docs/php", + "docs": "https://opentelemetry.io/docs/languages/php", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2025-10-02T23:44:28+00:00" + "time": "2025-11-25T10:59:15+00:00" }, { "name": "open-telemetry/sem-conv", @@ -1306,16 +1306,16 @@ }, { "name": "symfony/http-client", - "version": "v7.3.4", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "4b62871a01c49457cf2a8e560af7ee8a94b87a62" + "reference": "3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/4b62871a01c49457cf2a8e560af7ee8a94b87a62", - "reference": "4b62871a01c49457cf2a8e560af7ee8a94b87a62", + "url": "https://api.github.com/repos/symfony/http-client/zipball/3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de", + "reference": "3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de", "shasum": "" }, "require": { @@ -1382,7 +1382,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.3.4" + "source": "https://github.com/symfony/http-client/tree/v7.3.6" }, "funding": [ { @@ -1402,7 +1402,7 @@ "type": "tidelift" } ], - "time": "2025-09-11T10:12:26+00:00" + "time": "2025-11-05T17:41:46+00:00" }, { "name": "symfony/http-client-contracts", @@ -1729,16 +1729,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.6.0", + "version": "v3.6.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", - "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43", "shasum": "" }, "require": { @@ -1792,7 +1792,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.6.1" }, "funding": [ { @@ -1803,12 +1803,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-04-25T09:37:31+00:00" + "time": "2025-07-15T11:30:57+00:00" }, { "name": "tbachert/spi", @@ -2334,16 +2338,16 @@ }, { "name": "laravel/pint", - "version": "v1.25.1", + "version": "v1.26.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "5016e263f95d97670d71b9a987bd8996ade6d8d9" + "reference": "69dcca060ecb15e4b564af63d1f642c81a241d6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/5016e263f95d97670d71b9a987bd8996ade6d8d9", - "reference": "5016e263f95d97670d71b9a987bd8996ade6d8d9", + "url": "https://api.github.com/repos/laravel/pint/zipball/69dcca060ecb15e4b564af63d1f642c81a241d6f", + "reference": "69dcca060ecb15e4b564af63d1f642c81a241d6f", "shasum": "" }, "require": { @@ -2354,13 +2358,13 @@ "php": "^8.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.87.2", - "illuminate/view": "^11.46.0", - "larastan/larastan": "^3.7.1", - "laravel-zero/framework": "^11.45.0", + "friendsofphp/php-cs-fixer": "^3.90.0", + "illuminate/view": "^12.40.1", + "larastan/larastan": "^3.8.0", + "laravel-zero/framework": "^12.0.4", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^2.3.1", - "pestphp/pest": "^2.36.0" + "nunomaduro/termwind": "^2.3.3", + "pestphp/pest": "^3.8.4" }, "bin": [ "builds/pint" @@ -2386,6 +2390,7 @@ "description": "An opinionated code formatter for PHP.", "homepage": "https://laravel.com", "keywords": [ + "dev", "format", "formatter", "lint", @@ -2396,7 +2401,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2025-09-19T02:57:12+00:00" + "time": "2025-11-25T21:15:52+00:00" }, { "name": "myclabs/deep-copy", @@ -2460,16 +2465,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.6.1", + "version": "v5.6.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" + "reference": "3a454ca033b9e06b63282ce19562e892747449bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", - "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb", + "reference": "3a454ca033b9e06b63282ce19562e892747449bb", "shasum": "" }, "require": { @@ -2512,9 +2517,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2" }, - "time": "2025-08-13T20:13:15+00:00" + "time": "2025-10-21T19:32:17+00:00" }, { "name": "phar-io/manifest", @@ -2636,24 +2641,24 @@ }, { "name": "phpbench/container", - "version": "2.2.2", + "version": "2.2.3", "source": { "type": "git", "url": "https://github.com/phpbench/container.git", - "reference": "a59b929e00b87b532ca6d0edd8eca0967655af33" + "reference": "0c7b2d36c1ea53fe27302fb8873ded7172047196" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/container/zipball/a59b929e00b87b532ca6d0edd8eca0967655af33", - "reference": "a59b929e00b87b532ca6d0edd8eca0967655af33", + "url": "https://api.github.com/repos/phpbench/container/zipball/0c7b2d36c1ea53fe27302fb8873ded7172047196", + "reference": "0c7b2d36c1ea53fe27302fb8873ded7172047196", "shasum": "" }, "require": { "psr/container": "^1.0|^2.0", - "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0 || ^7.0" + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", + "php-cs-fixer/shim": "^3.89", "phpstan/phpstan": "^0.12.52", "phpunit/phpunit": "^8" }, @@ -2681,22 +2686,22 @@ "description": "Simple, configurable, service container.", "support": { "issues": "https://github.com/phpbench/container/issues", - "source": "https://github.com/phpbench/container/tree/2.2.2" + "source": "https://github.com/phpbench/container/tree/2.2.3" }, - "time": "2023-10-30T13:38:26+00:00" + "time": "2025-11-06T09:05:13+00:00" }, { "name": "phpbench/phpbench", - "version": "1.4.1", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b" + "reference": "b641dde59d969ea42eed70a39f9b51950bc96878" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", - "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/b641dde59d969ea42eed70a39f9b51950bc96878", + "reference": "b641dde59d969ea42eed70a39f9b51950bc96878", "shasum": "" }, "require": { @@ -2711,26 +2716,26 @@ "phpbench/container": "^2.2", "psr/log": "^1.1 || ^2.0 || ^3.0", "seld/jsonlint": "^1.1", - "symfony/console": "^6.1 || ^7.0", - "symfony/filesystem": "^6.1 || ^7.0", - "symfony/finder": "^6.1 || ^7.0", - "symfony/options-resolver": "^6.1 || ^7.0", - "symfony/process": "^6.1 || ^7.0", + "symfony/console": "^6.1 || ^7.0 || ^8.0", + "symfony/filesystem": "^6.1 || ^7.0 || ^8.0", + "symfony/finder": "^6.1 || ^7.0 || ^8.0", + "symfony/options-resolver": "^6.1 || ^7.0 || ^8.0", + "symfony/process": "^6.1 || ^7.0 || ^8.0", "webmozart/glob": "^4.6" }, "require-dev": { "dantleech/invoke": "^2.0", "ergebnis/composer-normalize": "^2.39", - "friendsofphp/php-cs-fixer": "^3.0", "jangregor/phpstan-prophecy": "^1.0", - "phpspec/prophecy": "dev-master", + "php-cs-fixer/shim": "^3.9", + "phpspec/prophecy": "^1.22", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^10.4 || ^11.0", "rector/rector": "^1.2", - "symfony/error-handler": "^6.1 || ^7.0", - "symfony/var-dumper": "^6.1 || ^7.0" + "symfony/error-handler": "^6.1 || ^7.0 || ^8.0", + "symfony/var-dumper": "^6.1 || ^7.0 || ^8.0" }, "suggest": { "ext-xdebug": "For Xdebug profiling extension." @@ -2773,7 +2778,7 @@ ], "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.4.1" + "source": "https://github.com/phpbench/phpbench/tree/1.4.3" }, "funding": [ { @@ -2781,7 +2786,7 @@ "type": "github" } ], - "time": "2025-03-12T08:01:40+00:00" + "time": "2025-11-06T19:07:31+00:00" }, { "name": "phpstan/phpstan", @@ -4434,16 +4439,16 @@ }, { "name": "symfony/console", - "version": "v7.3.4", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db" + "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", - "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", + "url": "https://api.github.com/repos/symfony/console/zipball/c28ad91448f86c5f6d9d2c70f0cf68bf135f252a", + "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a", "shasum": "" }, "require": { @@ -4508,7 +4513,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.3.4" + "source": "https://github.com/symfony/console/tree/v7.3.6" }, "funding": [ { @@ -4528,20 +4533,20 @@ "type": "tidelift" } ], - "time": "2025-09-22T15:31:00+00:00" + "time": "2025-11-04T01:21:42+00:00" }, { "name": "symfony/filesystem", - "version": "v7.3.2", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" + "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", - "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/e9bcfd7837928ab656276fe00464092cc9e1826a", + "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a", "shasum": "" }, "require": { @@ -4578,7 +4583,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.3.2" + "source": "https://github.com/symfony/filesystem/tree/v7.3.6" }, "funding": [ { @@ -4598,20 +4603,20 @@ "type": "tidelift" } ], - "time": "2025-07-07T08:17:47+00:00" + "time": "2025-11-05T09:52:27+00:00" }, { "name": "symfony/finder", - "version": "v7.3.2", + "version": "v7.3.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" + "reference": "9f696d2f1e340484b4683f7853b273abff94421f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", - "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", + "url": "https://api.github.com/repos/symfony/finder/zipball/9f696d2f1e340484b4683f7853b273abff94421f", + "reference": "9f696d2f1e340484b4683f7853b273abff94421f", "shasum": "" }, "require": { @@ -4646,7 +4651,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.3.2" + "source": "https://github.com/symfony/finder/tree/v7.3.5" }, "funding": [ { @@ -4666,7 +4671,7 @@ "type": "tidelift" } ], - "time": "2025-07-15T13:41:35+00:00" + "time": "2025-10-15T18:45:57+00:00" }, { "name": "symfony/options-resolver", @@ -5146,16 +5151,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.3", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", - "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", "shasum": "" }, "require": { @@ -5184,7 +5189,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + "source": "https://github.com/theseer/tokenizer/tree/1.3.1" }, "funding": [ { @@ -5192,7 +5197,7 @@ "type": "github" } ], - "time": "2024-03-03T12:36:25+00:00" + "time": "2025-11-17T20:03:58+00:00" }, { "name": "webmozart/glob", @@ -5246,7 +5251,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -5256,5 +5261,5 @@ "platform-dev": { "ext-xdebug": "*" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } diff --git a/tests/RequestTest.php b/tests/RequestTest.php index 80425fe8..1bf74bda 100755 --- a/tests/RequestTest.php +++ b/tests/RequestTest.php @@ -53,7 +53,7 @@ public function testCanRemoveHeaders() $this->request->removeHeader('custom'); - $this->assertSame(null, $this->request->getHeader('custom')); + $this->assertSame('', $this->request->getHeader('custom')); $this->assertSame('value2', $this->request->getHeader('custom-new')); } From 3e331c1290a9322525b6830db3f1c18bf52698c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 26 Nov 2025 11:29:08 +0100 Subject: [PATCH 3/4] Fix liner --- tests/HookTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/HookTest.php b/tests/HookTest.php index 513c460a..913b1b8d 100644 --- a/tests/HookTest.php +++ b/tests/HookTest.php @@ -105,7 +105,12 @@ public function testParamValuesCanBeSet() ->param('x', '', new Numeric()) ->param('y', '', new Numeric()); - foreach ($this->hook->getParams() as $key => $param) { + /** + * @var array $params + */ + $params = $this->hook->getParams(); + + foreach ($params as $key => $param) { $this->hook->setParamValue($key, $values[$key]); } From d83d86a4e8ad6480f2e53d54282be73fbe1a22d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 26 Nov 2025 11:35:39 +0100 Subject: [PATCH 4/4] Revert lockfile upgrade --- composer.lock | 225 ++++++++++++++++++++++++-------------------------- 1 file changed, 110 insertions(+), 115 deletions(-) diff --git a/composer.lock b/composer.lock index f5182612..72571813 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "brick/math", - "version": "0.14.1", + "version": "0.14.0", "source": { "type": "git", "url": "https://github.com/brick/math.git", - "reference": "f05858549e5f9d7bb45875a75583240a38a281d0" + "reference": "113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/math/zipball/f05858549e5f9d7bb45875a75583240a38a281d0", - "reference": "f05858549e5f9d7bb45875a75583240a38a281d0", + "url": "https://api.github.com/repos/brick/math/zipball/113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2", + "reference": "113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2", "shasum": "" }, "require": { @@ -56,7 +56,7 @@ ], "support": { "issues": "https://github.com/brick/math/issues", - "source": "https://github.com/brick/math/tree/0.14.1" + "source": "https://github.com/brick/math/tree/0.14.0" }, "funding": [ { @@ -64,7 +64,7 @@ "type": "github" } ], - "time": "2025-11-24T14:40:29+00:00" + "time": "2025-08-29T12:40:03+00:00" }, { "name": "composer/semver", @@ -145,16 +145,16 @@ }, { "name": "google/protobuf", - "version": "v4.33.1", + "version": "v4.33.0", "source": { "type": "git", "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12" + "reference": "b50269e23204e5ae859a326ec3d90f09efe3047d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/0cd73ccf0cd26c3e72299cce1ea6144091a57e12", - "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/b50269e23204e5ae859a326ec3d90f09efe3047d", + "reference": "b50269e23204e5ae859a326ec3d90f09efe3047d", "shasum": "" }, "require": { @@ -183,9 +183,9 @@ "proto" ], "support": { - "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.1" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.0" }, - "time": "2025-11-12T21:58:05+00:00" + "time": "2025-10-15T20:10:28+00:00" }, { "name": "nyholm/psr7", @@ -333,16 +333,16 @@ }, { "name": "open-telemetry/api", - "version": "1.7.1", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/api.git", - "reference": "45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4" + "reference": "610b79ad9d6d97e8368bcb6c4d42394fbb87b522" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4", - "reference": "45bda7efa8fcdd9bdb0daa2f26c8e31f062f49d4", + "url": "https://api.github.com/repos/opentelemetry-php/api/zipball/610b79ad9d6d97e8368bcb6c4d42394fbb87b522", + "reference": "610b79ad9d6d97e8368bcb6c4d42394fbb87b522", "shasum": "" }, "require": { @@ -362,7 +362,7 @@ ] }, "branch-alias": { - "dev-main": "1.8.x-dev" + "dev-main": "1.7.x-dev" } }, "autoload": { @@ -395,11 +395,11 @@ ], "support": { "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", - "docs": "https://opentelemetry.io/docs/languages/php", + "docs": "https://opentelemetry.io/docs/php", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2025-10-19T10:49:48+00:00" + "time": "2025-10-02T23:44:28+00:00" }, { "name": "open-telemetry/context", @@ -462,16 +462,16 @@ }, { "name": "open-telemetry/exporter-otlp", - "version": "1.3.3", + "version": "1.3.2", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/exporter-otlp.git", - "reference": "07b02bc71838463f6edcc78d3485c04b48fb263d" + "reference": "196f3a1dbce3b2c0f8110d164232c11ac00ddbb2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/07b02bc71838463f6edcc78d3485c04b48fb263d", - "reference": "07b02bc71838463f6edcc78d3485c04b48fb263d", + "url": "https://api.github.com/repos/opentelemetry-php/exporter-otlp/zipball/196f3a1dbce3b2c0f8110d164232c11ac00ddbb2", + "reference": "196f3a1dbce3b2c0f8110d164232c11ac00ddbb2", "shasum": "" }, "require": { @@ -518,11 +518,11 @@ ], "support": { "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", - "docs": "https://opentelemetry.io/docs/languages/php", + "docs": "https://opentelemetry.io/docs/php", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2025-11-13T08:04:37+00:00" + "time": "2025-06-16T00:24:51+00:00" }, { "name": "open-telemetry/gen-otlp-protobuf", @@ -589,16 +589,16 @@ }, { "name": "open-telemetry/sdk", - "version": "1.10.0", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/opentelemetry-php/sdk.git", - "reference": "3dfc3d1ad729ec7eb25f1b9a4ae39fe779affa99" + "reference": "8986bcbcbea79cb1ba9e91c1d621541ad63d6b3e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/3dfc3d1ad729ec7eb25f1b9a4ae39fe779affa99", - "reference": "3dfc3d1ad729ec7eb25f1b9a4ae39fe779affa99", + "url": "https://api.github.com/repos/opentelemetry-php/sdk/zipball/8986bcbcbea79cb1ba9e91c1d621541ad63d6b3e", + "reference": "8986bcbcbea79cb1ba9e91c1d621541ad63d6b3e", "shasum": "" }, "require": { @@ -678,11 +678,11 @@ ], "support": { "chat": "https://app.slack.com/client/T08PSQ7BQ/C01NFPCV44V", - "docs": "https://opentelemetry.io/docs/languages/php", + "docs": "https://opentelemetry.io/docs/php", "issues": "https://github.com/open-telemetry/opentelemetry-php/issues", "source": "https://github.com/open-telemetry/opentelemetry-php" }, - "time": "2025-11-25T10:59:15+00:00" + "time": "2025-10-02T23:44:28+00:00" }, { "name": "open-telemetry/sem-conv", @@ -1306,16 +1306,16 @@ }, { "name": "symfony/http-client", - "version": "v7.3.6", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de" + "reference": "4b62871a01c49457cf2a8e560af7ee8a94b87a62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de", - "reference": "3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de", + "url": "https://api.github.com/repos/symfony/http-client/zipball/4b62871a01c49457cf2a8e560af7ee8a94b87a62", + "reference": "4b62871a01c49457cf2a8e560af7ee8a94b87a62", "shasum": "" }, "require": { @@ -1382,7 +1382,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v7.3.6" + "source": "https://github.com/symfony/http-client/tree/v7.3.4" }, "funding": [ { @@ -1402,7 +1402,7 @@ "type": "tidelift" } ], - "time": "2025-11-05T17:41:46+00:00" + "time": "2025-09-11T10:12:26+00:00" }, { "name": "symfony/http-client-contracts", @@ -1729,16 +1729,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.6.1", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", - "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", "shasum": "" }, "require": { @@ -1792,7 +1792,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.6.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" }, "funding": [ { @@ -1803,16 +1803,12 @@ "url": "https://github.com/fabpot", "type": "github" }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2025-07-15T11:30:57+00:00" + "time": "2025-04-25T09:37:31+00:00" }, { "name": "tbachert/spi", @@ -2338,16 +2334,16 @@ }, { "name": "laravel/pint", - "version": "v1.26.0", + "version": "v1.25.1", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "69dcca060ecb15e4b564af63d1f642c81a241d6f" + "reference": "5016e263f95d97670d71b9a987bd8996ade6d8d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/69dcca060ecb15e4b564af63d1f642c81a241d6f", - "reference": "69dcca060ecb15e4b564af63d1f642c81a241d6f", + "url": "https://api.github.com/repos/laravel/pint/zipball/5016e263f95d97670d71b9a987bd8996ade6d8d9", + "reference": "5016e263f95d97670d71b9a987bd8996ade6d8d9", "shasum": "" }, "require": { @@ -2358,13 +2354,13 @@ "php": "^8.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.90.0", - "illuminate/view": "^12.40.1", - "larastan/larastan": "^3.8.0", - "laravel-zero/framework": "^12.0.4", + "friendsofphp/php-cs-fixer": "^3.87.2", + "illuminate/view": "^11.46.0", + "larastan/larastan": "^3.7.1", + "laravel-zero/framework": "^11.45.0", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^2.3.3", - "pestphp/pest": "^3.8.4" + "nunomaduro/termwind": "^2.3.1", + "pestphp/pest": "^2.36.0" }, "bin": [ "builds/pint" @@ -2390,7 +2386,6 @@ "description": "An opinionated code formatter for PHP.", "homepage": "https://laravel.com", "keywords": [ - "dev", "format", "formatter", "lint", @@ -2401,7 +2396,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2025-11-25T21:15:52+00:00" + "time": "2025-09-19T02:57:12+00:00" }, { "name": "myclabs/deep-copy", @@ -2465,16 +2460,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.6.2", + "version": "v5.6.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "3a454ca033b9e06b63282ce19562e892747449bb" + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb", - "reference": "3a454ca033b9e06b63282ce19562e892747449bb", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", "shasum": "" }, "require": { @@ -2517,9 +2512,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" }, - "time": "2025-10-21T19:32:17+00:00" + "time": "2025-08-13T20:13:15+00:00" }, { "name": "phar-io/manifest", @@ -2641,24 +2636,24 @@ }, { "name": "phpbench/container", - "version": "2.2.3", + "version": "2.2.2", "source": { "type": "git", "url": "https://github.com/phpbench/container.git", - "reference": "0c7b2d36c1ea53fe27302fb8873ded7172047196" + "reference": "a59b929e00b87b532ca6d0edd8eca0967655af33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/container/zipball/0c7b2d36c1ea53fe27302fb8873ded7172047196", - "reference": "0c7b2d36c1ea53fe27302fb8873ded7172047196", + "url": "https://api.github.com/repos/phpbench/container/zipball/a59b929e00b87b532ca6d0edd8eca0967655af33", + "reference": "a59b929e00b87b532ca6d0edd8eca0967655af33", "shasum": "" }, "require": { "psr/container": "^1.0|^2.0", - "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0" + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0 || ^7.0" }, "require-dev": { - "php-cs-fixer/shim": "^3.89", + "friendsofphp/php-cs-fixer": "^2.16", "phpstan/phpstan": "^0.12.52", "phpunit/phpunit": "^8" }, @@ -2686,22 +2681,22 @@ "description": "Simple, configurable, service container.", "support": { "issues": "https://github.com/phpbench/container/issues", - "source": "https://github.com/phpbench/container/tree/2.2.3" + "source": "https://github.com/phpbench/container/tree/2.2.2" }, - "time": "2025-11-06T09:05:13+00:00" + "time": "2023-10-30T13:38:26+00:00" }, { "name": "phpbench/phpbench", - "version": "1.4.3", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "b641dde59d969ea42eed70a39f9b51950bc96878" + "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/b641dde59d969ea42eed70a39f9b51950bc96878", - "reference": "b641dde59d969ea42eed70a39f9b51950bc96878", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", + "reference": "78cd98a9aa34e0f8f80ca01972a8b88d2c30194b", "shasum": "" }, "require": { @@ -2716,26 +2711,26 @@ "phpbench/container": "^2.2", "psr/log": "^1.1 || ^2.0 || ^3.0", "seld/jsonlint": "^1.1", - "symfony/console": "^6.1 || ^7.0 || ^8.0", - "symfony/filesystem": "^6.1 || ^7.0 || ^8.0", - "symfony/finder": "^6.1 || ^7.0 || ^8.0", - "symfony/options-resolver": "^6.1 || ^7.0 || ^8.0", - "symfony/process": "^6.1 || ^7.0 || ^8.0", + "symfony/console": "^6.1 || ^7.0", + "symfony/filesystem": "^6.1 || ^7.0", + "symfony/finder": "^6.1 || ^7.0", + "symfony/options-resolver": "^6.1 || ^7.0", + "symfony/process": "^6.1 || ^7.0", "webmozart/glob": "^4.6" }, "require-dev": { "dantleech/invoke": "^2.0", "ergebnis/composer-normalize": "^2.39", + "friendsofphp/php-cs-fixer": "^3.0", "jangregor/phpstan-prophecy": "^1.0", - "php-cs-fixer/shim": "^3.9", - "phpspec/prophecy": "^1.22", + "phpspec/prophecy": "dev-master", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.0", "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^10.4 || ^11.0", "rector/rector": "^1.2", - "symfony/error-handler": "^6.1 || ^7.0 || ^8.0", - "symfony/var-dumper": "^6.1 || ^7.0 || ^8.0" + "symfony/error-handler": "^6.1 || ^7.0", + "symfony/var-dumper": "^6.1 || ^7.0" }, "suggest": { "ext-xdebug": "For Xdebug profiling extension." @@ -2778,7 +2773,7 @@ ], "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.4.3" + "source": "https://github.com/phpbench/phpbench/tree/1.4.1" }, "funding": [ { @@ -2786,7 +2781,7 @@ "type": "github" } ], - "time": "2025-11-06T19:07:31+00:00" + "time": "2025-03-12T08:01:40+00:00" }, { "name": "phpstan/phpstan", @@ -4439,16 +4434,16 @@ }, { "name": "symfony/console", - "version": "v7.3.6", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a" + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/c28ad91448f86c5f6d9d2c70f0cf68bf135f252a", - "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a", + "url": "https://api.github.com/repos/symfony/console/zipball/2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", + "reference": "2b9c5fafbac0399a20a2e82429e2bd735dcfb7db", "shasum": "" }, "require": { @@ -4513,7 +4508,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.3.6" + "source": "https://github.com/symfony/console/tree/v7.3.4" }, "funding": [ { @@ -4533,20 +4528,20 @@ "type": "tidelift" } ], - "time": "2025-11-04T01:21:42+00:00" + "time": "2025-09-22T15:31:00+00:00" }, { "name": "symfony/filesystem", - "version": "v7.3.6", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a" + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/e9bcfd7837928ab656276fe00464092cc9e1826a", - "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", "shasum": "" }, "require": { @@ -4583,7 +4578,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.3.6" + "source": "https://github.com/symfony/filesystem/tree/v7.3.2" }, "funding": [ { @@ -4603,20 +4598,20 @@ "type": "tidelift" } ], - "time": "2025-11-05T09:52:27+00:00" + "time": "2025-07-07T08:17:47+00:00" }, { "name": "symfony/finder", - "version": "v7.3.5", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "9f696d2f1e340484b4683f7853b273abff94421f" + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/9f696d2f1e340484b4683f7853b273abff94421f", - "reference": "9f696d2f1e340484b4683f7853b273abff94421f", + "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", "shasum": "" }, "require": { @@ -4651,7 +4646,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.3.5" + "source": "https://github.com/symfony/finder/tree/v7.3.2" }, "funding": [ { @@ -4671,7 +4666,7 @@ "type": "tidelift" } ], - "time": "2025-10-15T18:45:57+00:00" + "time": "2025-07-15T13:41:35+00:00" }, { "name": "symfony/options-resolver", @@ -5151,16 +5146,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.3.1", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", - "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "shasum": "" }, "require": { @@ -5189,7 +5184,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.3.1" + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" }, "funding": [ { @@ -5197,7 +5192,7 @@ "type": "github" } ], - "time": "2025-11-17T20:03:58+00:00" + "time": "2024-03-03T12:36:25+00:00" }, { "name": "webmozart/glob", @@ -5251,7 +5246,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -5261,5 +5256,5 @@ "platform-dev": { "ext-xdebug": "*" }, - "plugin-api-version": "2.3.0" -} + "plugin-api-version": "2.6.0" +} \ No newline at end of file