imports.test 461 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. Integration of fixers: single_import_per_statement,no_leading_import_slash,no_extra_blank_lines,ordered_imports.
  3. --RULESET--
  4. {
  5. "single_import_per_statement": true,
  6. "no_leading_import_slash": true,
  7. "no_extra_blank_lines": {"tokens": ["use"]},
  8. "ordered_imports": true
  9. }
  10. --EXPECT--
  11. <?php
  12. namespace Acme;
  13. use Abc;
  14. use Barr;
  15. use BBB\Bar;
  16. use Foo;
  17. use Zzzz;
  18. --INPUT--
  19. <?php
  20. namespace Acme;
  21. use \Foo;
  22. use BBB\Bar;
  23. use Abc, \Barr, \Zzzz;