Skip to content

Commit 1cfd7f9

Browse files
committed
Make tests green again
1 parent 55582fd commit 1cfd7f9

File tree

8 files changed

+32
-3
lines changed

8 files changed

+32
-3
lines changed

src/Symfony/Bundle/SecurityBundle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"symfony/password-hasher": "^5.4|^6.0|^7.0",
3030
"symfony/security-core": "^6.2|^7.0",
3131
"symfony/security-csrf": "^5.4|^6.0|^7.0",
32-
"symfony/security-http": "^6.3|^7.0"
32+
"symfony/security-http": "^6.3.4|^7.0"
3333
},
3434
"require-dev": {
3535
"symfony/asset": "^5.4|^6.0|^7.0",

src/Symfony/Component/Cache/Traits/RelayProxy.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ public function bitcount($key, $start = 0, $end = -1, $by_bit = false): \Relay\R
456456
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bitcount(...\func_get_args());
457457
}
458458

459+
public function bitfield($key, ...$args): \Relay\Relay|array|false
460+
{
461+
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->bitfield(...\func_get_args());
462+
}
463+
459464
public function config($operation, $key = null, $value = null): \Relay\Relay|array|bool
460465
{
461466
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->config(...\func_get_args());

src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Webhook/SendgridSignedRequestParserTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,9 @@ protected function getSecret(): string
4343
{
4444
return 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE83T4O/n84iotIvIW4mdBgQ/7dAfSmpqIM8kF9mN1flpVKS3GRqe62gw+2fNNRaINXvVpiglSI8eNEc6wEA3F+g==';
4545
}
46+
47+
protected function mustBeSkipped(): bool
48+
{
49+
return !extension_loaded('openssl');
50+
}
4651
}

src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Webhook/SendgridWrongSecretRequestParserTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ protected function getSecret(): string
4747
{
4848
return 'incorrect';
4949
}
50+
51+
protected function mustBeSkipped(): bool
52+
{
53+
return !extension_loaded('openssl');
54+
}
5055
}

src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Webhook/SendgridWrongSignatureRequestParserTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ protected function getSecret(): string
4747
{
4848
return 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE83T4O/n84iotIvIW4mdBgQ/7dAfSmpqIM8kF9mN1flpVKS3GRqe62gw+2fNNRaINXvVpiglSI8eNEc6wEA3F+g==';
4949
}
50+
51+
protected function mustBeSkipped(): bool
52+
{
53+
return !extension_loaded('openssl');
54+
}
5055
}

src/Symfony/Component/Messenger/Bridge/Doctrine/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.1",
20-
"doctrine/dbal": "^2.13|^3.0",
20+
"doctrine/dbal": "^3.2",
2121
"symfony/messenger": "^5.4|^6.0|^7.0",
2222
"symfony/service-contracts": "^2.5|^3"
2323
},

src/Symfony/Component/Process/Tests/Messenger/RunProcessMessageHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testRunFailedProcess()
3333
(new RunProcessMessageHandler())(new RunProcessMessage(['invalid']));
3434
} catch (RunProcessFailedException $e) {
3535
$this->assertSame(['invalid'], $e->context->command);
36-
$this->assertSame(127, $e->context->exitCode);
36+
$this->assertSame('\\' === \DIRECTORY_SEPARATOR ? 1 : 127, $e->context->exitCode);
3737

3838
return;
3939
}

src/Symfony/Component/Webhook/Test/AbstractRequestParserTestCase.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ abstract class AbstractRequestParserTestCase extends TestCase
2626
*/
2727
public function testParse(string $payload, RemoteEvent $expected)
2828
{
29+
if ($this->mustBeSkipped()) {
30+
$this->markTestSkipped('This test cannot be run.');
31+
}
32+
2933
$request = $this->createRequest($payload);
3034
$parser = $this->createRequestParser();
3135
$wh = $parser->parse($request, $this->getSecret());
@@ -66,4 +70,9 @@ protected static function getFixtureExtension(): string
6670
{
6771
return 'json';
6872
}
73+
74+
protected function mustBeSkipped(): bool
75+
{
76+
return false;
77+
}
6978
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy