php_unit_attributes,phpdoc_trim.test 618 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. Integration of fixers: php_unit_attributes,phpdoc_trim.
  3. --RULESET--
  4. {"php_unit_attributes": true, "phpdoc_trim": 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. #[\PHPUnit\Framework\Attributes\DataProvider('getData')]
  17. public function testSomething()
  18. {
  19. }
  20. }
  21. --INPUT--
  22. <?php
  23. namespace Foo;
  24. use PHPUnit\Framework\TestCase;
  25. class BarTest extends TestCase
  26. {
  27. /**
  28. * @see food
  29. *
  30. * @dataProvider getData
  31. */
  32. public function testSomething()
  33. {
  34. }
  35. }