Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db2b673

Browse files
authored
fix: use full semver versions for PHPUnit requirements (#1118)
1 parent d109883 commit db2b673

49 files changed

Lines changed: 102 additions & 103 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/Integration/Attribute/WithStory/WithStoryOnClassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
/**
2929
* @author Nicolas PHILIPPE <[email protected]>
30-
* @requires PHPUnit >=11.0
30+
* @requires PHPUnit >=11.0.0
3131
*/
32-
#[RequiresPhpunit('>=11.0')]
32+
#[RequiresPhpunit('>=11.0.0')]
3333
#[RequiresPhpunitExtension(FoundryExtension::class)]
3434
#[WithStory(EntityStory::class)]
3535
#[ResetDatabase]

tests/Integration/Attribute/WithStory/WithStoryOnMethodTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
/**
3030
* @author Nicolas PHILIPPE <[email protected]>
31-
* @requires PHPUnit >=11.0
31+
* @requires PHPUnit >=11.0.0
3232
*/
33-
#[RequiresPhpunit('>=11.0')]
33+
#[RequiresPhpunit('>=11.0.0')]
3434
#[RequiresPhpunitExtension(FoundryExtension::class)]
3535
#[ResetDatabase]
3636
final class WithStoryOnMethodTest extends KernelTestCase

tests/Integration/Attribute/WithStory/WithStoryOnParentClassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
/**
2525
* @author Nicolas PHILIPPE <[email protected]>
26-
* @requires PHPUnit >=11.0
26+
* @requires PHPUnit >=11.0.0
2727
*/
28-
#[RequiresPhpunit('>=11.0')]
28+
#[RequiresPhpunit('>=11.0.0')]
2929
#[RequiresPhpunitExtension(FoundryExtension::class)]
3030
#[WithStory(EntityPoolStory::class)]
3131
final class WithStoryOnParentClassTest extends ParentClassWithStoryAttributeTestCase

tests/Integration/DataProvider/DataProviderForServiceFactoryInKernelTestCaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
/**
2929
* @author Nicolas PHILIPPE <[email protected]>
30-
* @requires PHPUnit >=11.4
30+
* @requires PHPUnit >=11.4.0
3131
*/
32-
#[RequiresPhpunit('>=11.4')]
32+
#[RequiresPhpunit('>=11.4.0')]
3333
#[RequiresPhpunitExtension(FoundryExtension::class)]
3434
final class DataProviderForServiceFactoryInKernelTestCaseTest extends KernelTestCase
3535
{

tests/Integration/DataProvider/DataProviderInUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434

3535
/**
3636
* @author Nicolas PHILIPPE <[email protected]>
37-
* @requires PHPUnit >=11.4
37+
* @requires PHPUnit >=11.4.0
3838
*/
39-
#[RequiresPhpunit('>=11.4')]
39+
#[RequiresPhpunit('>=11.4.0')]
4040
#[RequiresPhpunitExtension(FoundryExtension::class)]
4141
final class DataProviderInUnitTest extends TestCase
4242
{

tests/Integration/DataProvider/DataProviderWithInMemoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636

3737
/**
3838
* @author Nicolas PHILIPPE <[email protected]>
39-
* @requires PHPUnit >=11.4
39+
* @requires PHPUnit >=11.4.0
4040
*/
41-
#[RequiresPhpunit('>=11.4')]
41+
#[RequiresPhpunit('>=11.4.0')]
4242
#[RequiresPhpunitExtension(FoundryExtension::class)]
4343
#[ResetDatabase]
4444
final class DataProviderWithInMemoryTest extends KernelTestCase
@@ -92,7 +92,7 @@ public static function provideContactFactory(): iterable
9292
#[Test]
9393
#[DataProvider('provideContact')]
9494
#[AsInMemoryTest]
95-
#[RequiresPhp('^8.4')]
95+
#[RequiresPhp('^8.4.0')]
9696
public function it_can_create_in_memory_objects_in_data_provider(?Contact $contact = null): void
9797
{
9898
self::assertInstanceOf(Contact::class, $contact);

tests/Integration/DataProvider/DataProviderWithPersistentDocumentFactoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
/**
2727
* @author Nicolas PHILIPPE <[email protected]>
28-
* @requires PHPUnit >=12
28+
* @requires PHPUnit >=12.0.0
2929
*/
30-
#[RequiresPhp('>=8.4')]
31-
#[RequiresPhpunit('>=12')]
30+
#[RequiresPhp('>=8.4.0')]
31+
#[RequiresPhpunit('>=12.0.0')]
3232
#[RequiresPhpunitExtension(FoundryExtension::class)]
3333
#[RequiresEnvironmentVariable('USE_PHP_84_LAZY_OBJECTS', '1')]
3434
#[RequiresEnvironmentVariable('MONGO_URL')]

tests/Integration/DataProvider/DataProviderWithPersistentEntityFactoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
/**
2727
* @author Nicolas PHILIPPE <[email protected]>
28-
* @requires PHPUnit >=12
28+
* @requires PHPUnit >=12.0.0
2929
*/
30-
#[RequiresPhp('>=8.4')]
31-
#[RequiresPhpunit('>=12')]
30+
#[RequiresPhp('>=8.4.0')]
31+
#[RequiresPhpunit('>=12.0.0')]
3232
#[RequiresPhpunitExtension(FoundryExtension::class)]
3333
#[RequiresEnvironmentVariable('USE_PHP_84_LAZY_OBJECTS', '1')]
3434
#[RequiresEnvironmentVariable('DATABASE_URL')]

tests/Integration/DataProvider/DataProviderWithProxyPersistentDocumentFactoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727

2828
/**
2929
* @author Nicolas PHILIPPE <[email protected]>
30-
* @requires PHPUnit >=11.4
30+
* @requires PHPUnit >=11.4.0
3131
*/
32-
#[RequiresPhpunit('>=11.4')]
32+
#[RequiresPhpunit('>=11.4.0')]
3333
#[RequiresPhpunitExtension(FoundryExtension::class)]
3434
#[IgnoreDeprecations]
3535
#[RequiresMethod(\Symfony\Component\VarExporter\LazyProxyTrait::class, 'createLazyProxy')]

tests/Integration/DataProvider/DataProviderWithProxyPersistentEntityFactoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434

3535
/**
3636
* @author Nicolas PHILIPPE <[email protected]>
37-
* @requires PHPUnit >=12
37+
* @requires PHPUnit >=12.0.0
3838
*/
3939
#[IgnoreDeprecations]
40-
#[RequiresPhpunit('>=12')]
40+
#[RequiresPhpunit('>=12.0.0')]
4141
#[RequiresPhpunitExtension(FoundryExtension::class)]
4242
#[RequiresEnvironmentVariable('USE_PHP_84_LAZY_OBJECTS', '0')]
4343
#[RequiresEnvironmentVariable('DATABASE_URL')]
@@ -66,7 +66,7 @@ public static function createOneProxyObjectInDataProvider(): iterable
6666

6767
#[Test]
6868
#[DataProvider('throwsExceptionWhenCreatingObjectInDataProvider')]
69-
#[RequiresPhp('<8.4')]
69+
#[RequiresPhp('<8.4.0')]
7070
public function it_throws_when_creating_persisted_object_with_non_proxy_factory_in_data_provider_without_php_84(?\Throwable $e): void
7171
{
7272
self::assertInstanceOf(\LogicException::class, $e);

0 commit comments

Comments
 (0)