File tree Expand file tree Collapse file tree 5 files changed +12
-2
lines changed
DependencyInjection/Tests/Compiler
Notifier/Bridge/Telegram/Tests Expand file tree Collapse file tree 5 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ public function testRenderedOnceUnserializableContext()
133
133
$ this ->assertEquals ('Text ' , $ email ->getTextBody ());
134
134
}
135
135
136
+ /**
137
+ * @requires extension intl
138
+ */
136
139
public function testRenderWithLocale ()
137
140
{
138
141
$ localeSwitcher = new LocaleSwitcher ('en ' , []);
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public static function mockTime(string|\DateTimeImmutable|bool $when = true): Cl
35
35
false === $ when => self ::saveClockBeforeTest (false ),
36
36
true === $ when => new MockClock (),
37
37
$ when instanceof \DateTimeImmutable => new MockClock ($ when ),
38
- default => new MockClock (now ()-> modify ( $ when )),
38
+ default => new MockClock (now ($ when )),
39
39
});
40
40
41
41
return Clock::get ();
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class DatePointTest extends TestCase
21
21
22
22
public function testDatePoint ()
23
23
{
24
- self ::mockTime ('2010-01-28 15:00:00 ' );
24
+ self ::mockTime ('2010-01-28 15:00:00 UTC ' );
25
25
26
26
$ date = new DatePoint ();
27
27
$ this ->assertSame ('2010-01-28 15:00:00 UTC ' , $ date ->format ('Y-m-d H:i:s e ' ));
Original file line number Diff line number Diff line change 55
55
use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService3 ;
56
56
use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService3Configurator ;
57
57
use Symfony \Component \DependencyInjection \Tests \Fixtures \TaggedService4 ;
58
+ use Symfony \Contracts \Service \Attribute \SubscribedService ;
58
59
use Symfony \Contracts \Service \ServiceProviderInterface ;
59
60
use Symfony \Contracts \Service \ServiceSubscriberInterface ;
60
61
@@ -391,6 +392,10 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethod()
391
392
392
393
public function testLocatorConfiguredViaAttribute ()
393
394
{
395
+ if (!property_exists (SubscribedService::class, 'type ' )) {
396
+ $ this ->markTestSkipped ('Requires symfony/service-contracts >= 3.2 ' );
397
+ }
398
+
394
399
$ container = new ContainerBuilder ();
395
400
$ container ->setParameter ('some.parameter ' , 'foo ' );
396
401
$ container ->register (BarTagClass::class)
Original file line number Diff line number Diff line change @@ -890,6 +890,8 @@ public static function sendFileByUploadProvider(): array
890
890
891
891
/**
892
892
* @dataProvider sendFileByUploadProvider
893
+ *
894
+ * @requires extension fileinfo
893
895
*/
894
896
public function testSendFileByUploadWithOptions (
895
897
TelegramOptions $ messageOptions ,
You can’t perform that action at this time.
0 commit comments