Skip to content

TestSetterAndGetterTrait: Allow setting target per individual test#4

Merged
TiSiE merged 6 commits into
cross-solution:2.xfrom
TiSiE:TestSetterAndGetterTrait-allow_setting_target_per_individual_test
Mar 12, 2020
Merged

TestSetterAndGetterTrait: Allow setting target per individual test#4
TiSiE merged 6 commits into
cross-solution:2.xfrom
TiSiE:TestSetterAndGetterTrait-allow_setting_target_per_individual_test

Conversation

@TiSiE

@TiSiE TiSiE commented Oct 1, 2019

Copy link
Copy Markdown
Member

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

cbleek commented Feb 19, 2020

Copy link
Copy Markdown
Member

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