sabbelasichon / typo3-rector-testing-framework

Rector Rules for TYPO3 Testing Framework
MIT License
3 stars 1 forks source link

TASK: Add Rule to use $resetSingletonInstance property #3

Open tomasnorre opened 3 months ago

tomasnorre commented 3 months ago

I have added a test that fails, as there is no real implementation yet.

I haven't done rector for quite a while, so currently, not able to graps what I need to do to get it to work. But will try to figure it out.

I know that I need the

 new AddPropertyTypeDeclaration(
    'TYPO3\TestingFramework\Core\Unit\UnitTestCase',
    'resetSingletonInstances',
    new BooleanType()
),

in some constellation or another. But it should only be done when the value is set in the teardown.