Skip to content

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