Skip to content

Commit d9ea81d

Browse files
authored
Remove PHPUnit "require PHP 8" (#1869)
1 parent ed97813 commit d9ea81d

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

tests/DependencyInjection/AbstractDoctrineExtensionTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ public function testDependencyInjectionImportsOverrideDefaults(): void
531531
$this->assertDICDefinitionMethodCallOnce($configDefinition, 'setMetadataCache', [new Reference('doctrine.orm.default_metadata_cache')]);
532532
}
533533

534-
/** @requires PHP 8 */
535534
public function testSingleEntityManagerMultipleMappingBundleDefinitions(): void
536535
{
537536
if (! interface_exists(EntityManagerInterface::class)) {
@@ -578,7 +577,6 @@ public function testSingleEntityManagerMultipleMappingBundleDefinitions(): void
578577
]);
579578
}
580579

581-
/** @requires PHP 8 */
582580
public function testMultipleEntityManagersMappingBundleDefinitions(): void
583581
{
584582
if (! interface_exists(EntityManagerInterface::class)) {
@@ -938,7 +936,6 @@ public function testAddCustomHydrationMode(): void
938936
$this->assertDICDefinitionMethodCallOnce($definition, 'addCustomHydrationMode', ['test_hydrator', TestHydrator::class]);
939937
}
940938

941-
/** @requires PHP 8.1 */
942939
public function testAddFilter(): void
943940
{
944941
if (! interface_exists(EntityManagerInterface::class)) {

tests/DependencyInjection/Compiler/MiddlewarePassTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ public function provideAddMiddlewareWithAttributeForAutoconfiguration(): array
109109
* @param class-string $className
110110
*
111111
* @dataProvider provideAddMiddlewareWithAttributeForAutoconfiguration
112-
* @requires PHP 8
113112
*/
114113
public function testAddMiddlewareWithAttributeForAutoconfiguration(string $className, bool $registeredOnConn1): void
115114
{
@@ -327,7 +326,6 @@ public function testInjectedMiddlewaresPreserveParentDefinition(): void
327326
$this->assertSame($middlewares[0], $definition);
328327
}
329328

330-
/** @requires PHP 8 */
331329
public function testAddMiddlewareOrderingWithAttributeForAutoconfiguration(): void
332330
{
333331
$container = $this->createContainer(static function (ContainerBuilder $container) {

tests/DependencyInjection/DoctrineExtensionTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,6 @@ public function testXmlBundleMappingDetection(): void
825825
]);
826826
}
827827

828-
/** @requires PHP 8 */
829828
public function testAttributesBundleMappingDetection(): void
830829
{
831830
if (! interface_exists(EntityManagerInterface::class)) {
@@ -1166,7 +1165,6 @@ public static function cacheConfigurationProvider(): array
11661165
];
11671166
}
11681167

1169-
/** @requires PHP 8 */
11701168
public function testAsEntityListenerAttribute()
11711169
{
11721170
if (! interface_exists(EntityManagerInterface::class)) {
@@ -1203,7 +1201,6 @@ public function testAsEntityListenerAttribute()
12031201
$this->assertSame([$expected], $definition->getTag('doctrine.orm.entity_listener'));
12041202
}
12051203

1206-
/** @requires PHP 8 */
12071204
public function testAsDoctrineListenerAttribute()
12081205
{
12091206
if (! interface_exists(EntityManagerInterface::class)) {

0 commit comments

Comments
 (0)