comment_to_phpdoc,phpdoc_to_comment.test 735 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Integration of fixers: comment_to_phpdoc,phpdoc_to_comment.
  3. --RULESET--
  4. {"comment_to_phpdoc": true, "phpdoc_to_comment": true}
  5. --EXPECT--
  6. <?php
  7. $first = true;// needed because by default first docblock is ignored by phpdoc_to_comment.
  8. /** @var string $content */
  9. while ($content = $this->getContent()) {
  10. $name .= $content;
  11. }
  12. /* @var string $notContent */
  13. while ($content = $this->getContent()) {
  14. $name .= $content;
  15. }
  16. --INPUT--
  17. <?php
  18. $first = true;// needed because by default first docblock is ignored by phpdoc_to_comment.
  19. /* @var string $content */
  20. while ($content = $this->getContent()) {
  21. $name .= $content;
  22. }
  23. /* @var string $notContent */
  24. while ($content = $this->getContent()) {
  25. $name .= $content;
  26. }