8000 minor #43786 remove no longer needed PHP version requirements from te… · symfony/symfony@fd0d901 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd0d901

Browse files
committed
minor #43786 remove no longer needed PHP version requirements from tests (xabbuh)
This PR was merged into the 6.0 branch. Discussion ---------- remove no longer needed PHP version requirements from tests | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- bd76c05 remove no longer needed PHP version requirements from tests
2 parents 44380ad + bd76c05 commit fd0d901

File tree

7 files changed

+0
-41
lines changed

7 files changed

+0
-41
lines changed

src/Symfony/Component/Console/Tests/Command/CommandTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,6 @@ public function testCommandAttribute()
420420
$this->assertSame(['f'], $command->getAliases());
421421
}
422422

423-
/**
424-
* @requires PHP 8
425-
*/
426423
public function testDefaultCommand()
427424
{
428425
$apl = new Application();

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,6 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethodConfiguredVia
384384
$this->assertSame(['bar_tab_class_with_defaultmethod' => $container->get(BarTagClass::class), 'foo' => $container->get(FooTagClass::class)], $param);
385385
}
386386

387-
/**
388-
* @requires PHP 8
389-
*/
390387
public function testTaggedIteratorWithDefaultIndexMethodConfiguredViaAttribute()
391388
{
392389
$container = new ContainerBuilder();
@@ -411,9 +408,6 @@ public function testTaggedIteratorWithDefaultIndexMethodConfiguredViaAttribute()
411408
$this->assertSame(['bar_tag_class' => $container->get(BarTagClass::class), 'foo_tag_class' => $container->get(FooTagClass::class)], $param);
412409
}
413410

414-
/**
415-
* @requires PHP 8
416-
*/
417411
public function testTaggedIteratorWithDefaultPriorityMethodConfiguredViaAttribute()
418412
{
419413
$container = new ContainerBuilder();
@@ -438,9 +432,6 @@ public function testTaggedIteratorWithDefaultPriorityMethodConfiguredViaAttribut
438432
$this->assertSame([0 => $container->get(FooTagClass::class), 1 => $container->get(BarTagClass::class)], $param);
439433
}
440434

441-
/**
442-
* @requires PHP 8
443-
*/
444435
public function testTaggedIteratorWithDefaultIndexMethodAndWithDefaultPriorityMethodConfiguredViaAttribute()
445436
{
446437
$container = new ContainerBuilder();
@@ -491,9 +482,6 @@ public function testTaggedLocatorConfiguredViaAttribute()
491482
self::assertSame($container->get(FooTagClass::class), $locator->get('foo'));
492483
}
493484

494-
/**
495-
* @requires PHP 8
496-
*/
497485
public function testTaggedLocatorConfiguredViaAttributeWithoutIndex()
498486
{
499487
$container = new ContainerBuilder();
@@ -520,9 +508,6 @@ public function testTaggedLocatorConfiguredViaAttributeWithoutIndex()
520508
self::assertSame($container->get(FooTagClass::class), $locator->get(FooTagClass::class));
521509
}
522510

523-
/**
524-
* @requires PHP 8
525-
*/
526511
public function testTaggedLocatorWithDefaultIndexMethodConfiguredViaAttribute()
527512
{
528513
$container = new ContainerBuilder();
@@ -549,9 +534,6 @@ public function testTaggedLocatorWithDefaultIndexMethodConfiguredViaAttribute()
549534
self::assertSame($container->get(FooTagClass::class), $locator->get('foo_tag_class'));
550535
}
551536

552-
/**
553-
* @requires PHP 8
554-
*/
555537
public function testTaggedLocatorWithDefaultPriorityMethodConfiguredViaAttribute()
556538
{
557539
$container = new ContainerBuilder();
@@ -582,9 +564,6 @@ public function testTaggedLocatorWithDefaultPriorityMethodConfiguredViaAttribute
582564
self::assertSame([FooTagClass::class, BarTagClass::class], array_keys($factories->getValue($locator)));
583565
}
584566

585-
/**
586-
* @requires PHP 8
587-
*/
588567
public function testTaggedLocatorWithDefaultIndexMethodAndWithDefaultPriorityMethodConfiguredViaAttribute()
589568
{
590569
$container = new ContainerBuilder();
@@ -617,9 +596,6 @@ public function testTaggedLocatorWithDefaultIndexMethodAndWithDefaultPriorityMet
617596
self::assertSame($container->get(FooTagClass::class), $locator->get('foo_tag_class'));
618597
}
619598

620-
/**
621-
* @requires PHP 8
622-
*/
623599
public function testNestedDefinitionWithAutoconfiguredConstructorArgument()
624600
{
625601
$container = new ContainerBuilder();
@@ -904,9 +880,6 @@ static function (Definition $definition, CustomAutoconfiguration $attribute) {
904880
], $collector->collectedTags);
905881
}
906882

907-
/**
908-
* @requires PHP 8
909-
*/
910883
public function testTagsViaAttributeOnPropertyMethodAndParameter()
911884
{
912885
$container = new ContainerBuilder();

src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ public function testMultipleAttributes()
134134
$this->assertCount(1, $this->factory->createArgumentMetadata([new AttributeController(), 'multiAttributeArg'])[0]->getAttributes());
135135
}
136136

137-
/**
138-
* @requires PHP 8
139-
*/
140137
public function testIssue41478()
141138
{
142139
$arguments = $this->factory->createArgumentMetadata([new AttributeController(), 'issue41478']);

src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ public function testFromTransportViaTagAttribute()
105105
$this->assertHandlerDescriptor($container, $handlerDescriptionMapping, DummyMessage::class, [DummyHandler::class], [['from_transport' => 'async']]);
106106
}
107107

108-
/**
109-
* @requires PHP 8
110-
*/
111108
public function testTaggedMessageHandler()
112109
{
113110
$container = $this->getContainerBuilder($busId = 'message_bus');

src/Symfony/Component/Serializer/Tests/SerializerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,6 @@ public function testCollectDenormalizationErrors2()
997997
$this->assertSame($expected, $exceptionsAsArray);
998998
}
999999

1000-
/** @requires PHP 8.0 */
10011000
public function testCollectDenormalizationErrorsWithConstructor()
10021001
{
10031002
$json = '{"bool": "bool"}';

src/Symfony/Component/Validator/Tests/Constraints/CidrTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ public function getValidMinMaxValues(): array
111111
];
112112
}
113113

114-
/**
115-
* @requires PHP 8
116-
*/
117114
public function testAttributes()
118115
{
119116
$metadata = new ClassMetadata(CidrDummy::class);

src/Symfony/Component/Validator/Tests/Constraints/CssColorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
/**
2020
* @author Mathieu Santostefano <msantostefano@protonmail.com>
21-
* @requires PHP 8
2221
*/
2322
final class CssColorTest extends TestCase
2423
{

0 commit comments

Comments
 (0)
0