File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 33[ ![ Latest stable version] ( https://img.shields.io/packagist/v/kubawerlos/php-cs-fixer-custom-fixers.svg?label=current%20version )] ( https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers )
44[ ![ PHP version] ( https://img.shields.io/packagist/php-v/kubawerlos/php-cs-fixer-custom-fixers.svg )] ( https://php.net )
55[ ![ License] ( https://img.shields.io/github/license/kubawerlos/php-cs-fixer-custom-fixers.svg )] ( LICENSE )
6- ![ Tests] ( https://img.shields.io/badge/tests-2978 -brightgreen.svg )
6+ ![ Tests] ( https://img.shields.io/badge/tests-2981 -brightgreen.svg )
77[ ![ Downloads] ( https://img.shields.io/packagist/dt/kubawerlos/php-cs-fixer-custom-fixers.svg )] ( https://packagist.org/packages/kubawerlos/php-cs-fixer-custom-fixers )
88
99[ ![ CI Status] ( https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=main&event=push )] ( https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions )
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public function testFoo() {
6464 }
6565
6666 /**
67+ * Must run before NoUnusedImportsFixer.
6768 * Must run after PhpUnitAssertArgumentsOrderFixer.
6869 */
6970 public function getPriority (): int
Original file line number Diff line number Diff line change @@ -436,6 +436,26 @@ public function testFoo() {
436436 ' ,
437437 ];
438438
439+ yield [
440+ new CustomFixer \PhpUnitDedicatedAssertFixer (),
441+ new Fixer \Import \NoUnusedImportsFixer (),
442+ '<?php
443+ class FooTest extends TestCase {
444+ public function testFoo() {
445+ $this->assertCount(3, $elements);
446+ }
447+ }
448+ ' ,
449+ '<?php
450+ use function count;
451+ class FooTest extends TestCase {
452+ public function testFoo() {
453+ $this->assertSame(3, count($elements));
454+ }
455+ }
456+ ' ,
457+ ];
458+
439459 $ noExtraBlankLinesFixer = new Fixer \Whitespace \NoExtraBlankLinesFixer ();
440460 $ noExtraBlankLinesFixer ->configure (['tokens ' => ['curly_brace_block ' ]]);
441461 yield [
You can’t perform that action at this time.
0 commit comments