8000 Fix CI · symfony/symfony@5b0bf09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b0bf09

Browse files
committed
Fix CI
1 parent ccbd5de commit 5b0bf09

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

src/Symfony/Bridge/Twig/Tests/Mime/BodyRendererTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ public function testRenderedOnceUnserializableContext()
133133
$this->assertEquals('Text', $email->getTextBody());
134134
}
135135

136+
/**
137+
* @requires extension intl
138+
*/
136139
public function testRenderWithLocale()
137140
{
138141
$localeSwitcher = new LocaleSwitcher('en', []);

src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function mockTime(string|\DateTimeImmutable|bool $when = true): Cl
3535
false === $when => self::saveClockBeforeTest(false),
3636
true === $when => new MockClock(),
3737
$when instanceof \DateTimeImmutable => new MockClock($when),
38-
default => new MockClock(now()->modify($when)),
38+
default => new MockClock(now($when)),
3939
});
4040

4141
return Clock::get();

src/Symfony/Component/Clock/Tests/DatePointTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DatePointTest extends TestCase
2121

2222
public function testDatePoint()
2323
{
24-
self::mockTime('2010-01-28 15:00:00');
24+
self::mockTime('2010-01-28 15:00:00 UTC');
2525

2626
$date = new DatePoint();
2727
$this->assertSame('2010-01-28 15:00:00 UTC', $date->format('Y-m-d H:i:s e'));

src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
use Symfony\Component\DependencyInjection\Tests\Fixtures\TaggedService3;
5656
use Symfony\Component\DependencyInjection\Tests\Fixtures\TaggedService3Configurator;
5757
use Symfony\Component\DependencyInjection\Tests\Fixtures\TaggedService4;
58+
use Symfony\Contracts\Service\Attribute\SubscribedService;
5859
use Symfony\Contracts\Service\ServiceProviderInterface;
5960
use Symfony\Contracts\Service\ServiceSubscriberInterface;
6061

@@ -391,6 +392,10 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethod()
391392

392393
public function testLocatorConfiguredViaAttribute()
393394
{
395+
if (!property_exists(SubscribedService::class, 'type')) {
396+
$this->markTestSkipped('Requires symfony/service-contracts >= 3.2');
397+
}
398+
394399
$container = new ContainerBuilder();
395400
$container->setParameter('some.parameter', 'foo');
396401
$container->register(BarTagClass::class)

src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,8 @@ public static function sendFileByUploadProvider(): array
890890

891891
/**
892892
* @dataProvider sendFileByUploadProvider
893+
*
894+
* @requires extension fileinfo
893895
*/
894896
public function testSendFileByUploadWithOptions(
895897
TelegramOptions $messageOptions,

0 commit comments

Comments
 (0)
0