Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor: change versions requirements #737

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use PHPUnit\Framework\Attributes\RequiresPhpunit;
use PHPUnit\Framework\Attributes\RequiresPhpunitExtension;
use PHPUnit\Framework\Attributes\Test;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Zenstruck\Foundry\Attribute\WithStory;
use Zenstruck\Foundry\PHPUnit\FoundryExtension;
Expand All @@ -27,9 +28,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11
* @requires PHPUnit ^11.0
*/
#[RequiresPhpunit('11')]
#[RequiresPhpunit('^11.0')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
#[WithStory(EntityStory::class)]
final class WithStoryOnClassTest extends KernelTestCase
Expand All @@ -39,6 +40,7 @@ final class WithStoryOnClassTest extends KernelTestCase
/**
* @test
*/
#[Test]
public function can_use_story_in_attribute(): void
{
GenericEntityFactory::assert()->count(2);
Expand All @@ -50,6 +52,7 @@ public function can_use_story_in_attribute(): void
/**
* @test
*/
#[Test]
#[WithStory(EntityStory::class)]
public function can_use_story_in_attribute_multiple_times(): void
{
Expand All @@ -59,6 +62,7 @@ public function can_use_story_in_attribute_multiple_times(): void
/**
* @test
*/
#[Test]
#[WithStory(EntityPoolStory::class)]
public function can_use_another_story_at_level_class(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use PHPUnit\Framework\Attributes\RequiresPhpunit;
use PHPUnit\Framework\Attributes\RequiresPhpunitExtension;
use PHPUnit\Framework\Attributes\Test;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Zenstruck\Foundry\Attribute\WithStory;
use Zenstruck\Foundry\PHPUnit\FoundryExtension;
Expand All @@ -28,9 +29,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11
* @requires PHPUnit ^11.0
*/
#[RequiresPhpunit('11')]
#[RequiresPhpunit('^11.0')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
final class WithStoryOnMethodTest extends KernelTestCase
{
Expand All @@ -39,6 +40,7 @@ final class WithStoryOnMethodTest extends KernelTestCase
/**
* @test
*/
#[Test]
#[WithStory(EntityStory::class)]
public function can_use_story_in_attribute(): void
{
Expand All @@ -51,6 +53,7 @@ public function can_use_story_in_attribute(): void
/**
* @test
*/
#[Test]
#[WithStory(EntityStory::class)]
#[WithStory(EntityPoolStory::class)]
public function can_use_multiple_story_in_attribute(): void
Expand All @@ -61,6 +64,7 @@ public function can_use_multiple_story_in_attribute(): void
/**
* @test
*/
#[Test]
#[WithStory(ServiceStory::class)]
public function can_use_service_story(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,25 @@

use PHPUnit\Framework\Attributes\RequiresPhpunit;
use PHPUnit\Framework\Attributes\RequiresPhpunitExtension;
use PHPUnit\Framework\Attributes\Test;
use Zenstruck\Foundry\Attribute\WithStory;
use Zenstruck\Foundry\PHPUnit\FoundryExtension;
use Zenstruck\Foundry\Tests\Fixture\Factories\Entity\GenericEntityFactory;
use Zenstruck\Foundry\Tests\Fixture\Stories\EntityPoolStory;

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11
* @requires PHPUnit ^11.0
*/
#[RequiresPhpunit('11')]
#[RequiresPhpunit('^11.0')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
#[WithStory(EntityPoolStory::class)]
final class WithStoryOnParentClassTest extends ParentClassWithStoryAttributeTestCase
{
/**
* @test
*/
#[Test]
public function can_use_story_in_attribute_from_parent_class(): void
{
GenericEntityFactory::assert()->count(5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11.4
* @requires PHPUnit ^11.4
*/
#[RequiresPhpunit('11.4')]
#[RequiresPhpunit('^11.4')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
final class DataProviderForServiceFactoryInKernelTestCaseTest extends KernelTestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/DataProvider/DataProviderInUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11.4
* @requires PHPUnit ^11.4
*/
#[RequiresPhpunit('11.4')]
#[RequiresPhpunit('^11.4')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
final class DataProviderInUnitTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11.4
* @requires PHPUnit ^11.4
*/
#[RequiresPhpunit('11.4')]
#[RequiresPhpunit('^11.4')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
final class DataProviderWithNonProxyFactoryInKernelTestCaseTest extends KernelTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11.4
* @requires PHPUnit ^11.4
*/
#[RequiresPhpunit('11.4')]
#[RequiresPhpunit('^11.4')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
abstract class DataProviderWithProxyFactoryInKernelTestCase extends KernelTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11.4
* @requires PHPUnit ^11.4
*/
#[RequiresPhpunit('11.4')]
#[RequiresPhpunit('^11.4')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
final class GenericDocumentProxyFactoryTest extends DataProviderWithProxyFactoryInKernelTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

/**
* @author Nicolas PHILIPPE <[email protected]>
* @requires PHPUnit 11.4
* @requires PHPUnit ^11.4
*/
#[RequiresPhpunit('11.4')]
#[RequiresPhpunit('^11.4')]
#[RequiresPhpunitExtension(FoundryExtension::class)]
final class GenericEntityProxyFactoryTest extends DataProviderWithProxyFactoryInKernelTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Integration/Maker/MakeStoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
/**
* @author Kevin Bond <[email protected]>
* @group maker
* @requires PHP 8.1
*/
final class MakeStoryTest extends MakerTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Integration/Maker/MakerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @author Kevin Bond <[email protected]>
* @group maker
* @requires PHP 8.1
*/
abstract class MakerTestCase extends KernelTestCase
{
Expand Down
Loading