php_unit_attributes,phpdoc_separation.test 684 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --TEST--
  2. Integration of fixers: php_unit_attributes,phpdoc_separation.
  3. --RULESET--
  4. {"php_unit_attributes": true, "phpdoc_separation": true }
  5. --REQUIREMENTS--
  6. {"php": 80000}
  7. --EXPECT--
  8. <?php
  9. namespace Foo;
  10. use PHPUnit\Framework\TestCase;
  11. class BarTest extends TestCase
  12. {
  13. /**
  14. * @see food
  15. *
  16. * @return void
  17. */
  18. #[\PHPUnit\Framework\Attributes\DataProvider('getData')]
  19. public function testSomething()
  20. {
  21. }
  22. }
  23. --INPUT--
  24. <?php
  25. namespace Foo;
  26. use PHPUnit\Framework\TestCase;
  27. class BarTest extends TestCase
  28. {
  29. /**
  30. * @see food
  31. *
  32. * @dataProvider getData
  33. *
  34. * @return void
  35. */
  36. public function testSomething()
  37. {
  38. }
  39. }