lolli,
@lolli@norden.social avatar

Looking for a rule to change @test@norden.social annotation to #[Test] attribute. Could only find something for '@dataProvider' and '@testWith`. Any pointers?

brotkrueml, (edited )
@brotkrueml@phpc.social avatar

@lolli

I am using the set "Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_100" (which provides a bunch of rules), one of them does this work for me.

maddy2101,
@maddy2101@fosstodon.org avatar

@lolli if there is none to be found, make sure to create an issue in the typo3_rector github. In few weeks time, six dedicated developers meet for the sole purpose to create requested rector rules. Thanks to my employer "PIA | UDG" supporting and for the community we will have time and space to do so.

danielsiepmann,

@test @lolli Wondering. It worked for me. Would need to check the source on Monday where it came from...

danielsiepmann,

@test @lolli the migration comes from github.com/rectorphp/rector-ph… This is a configured rule, that's why you won't fine a specific implementation.

The config file is referenced via PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES from @brotkrueml mentioned PHPUNIT_10 github.com/rectorphp/rector-ph…

Hope that helps.

lolli,
@lolli@norden.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • thenastyranch
  • ngwrru68w68
  • magazineikmin
  • khanakhh
  • rosin
  • mdbf
  • Youngstown
  • slotface
  • everett
  • GTA5RPClips
  • kavyap
  • Leos
  • InstantRegret
  • JUstTest
  • Durango
  • osvaldo12
  • ethstaker
  • cubers
  • tacticalgear
  • tester
  • provamag3
  • cisconetworking
  • modclub
  • anitta
  • megavids
  • normalnudes
  • lostlight
  • All magazines