Skip to content

TestSetterAndGetterTrait: Allow setting target per individual test #4

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

Conversation

TiSiE
Copy link
Member

@TiSiE TiSiE commented Oct 1, 2019

This feature let's you use a different SUT for an individual test.

public function setterAndGetterData()
{
   private $target = SubjectUnderTest::class;

    return [
        ['id', 'someTestId'],
        ['test', [
            'target' => SpecialSubjectUnderTest::class,
            'value' => 'test',
        ]],
    ];
}

Also: The trait throws only InvalidUsageExceptions.

@cbleek
Copy link
Member

cbleek commented Feb 19, 2020

any news?

…lback', 'setter_callback' and 'expect_callback'
@TiSiE TiSiE added this to the 2.1.0 milestone Mar 12, 2020
@TiSiE TiSiE merged commit 04d34a9 into cross-solution:2.x Mar 12, 2020
@TiSiE TiSiE deleted the TestSetterAndGetterTrait-allow_setting_target_per_individual_test branch March 12, 2020 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants