Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX: add missing priority test for indentation_type and phpdoc_indent #5056

Merged
merged 1 commit into from Aug 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/AutoReview/FixerFactoryTest.php
Expand Up @@ -307,7 +307,6 @@ public function testFixersPriorityPairsHaveIntegrationTest(FixerInterface $first
// This structure contains older cases that are not yet covered by tests.
// It may only shrink, never add anything to it.
$casesWithoutTests = [
'indentation_type,phpdoc_indent.test',
'phpdoc_no_access,phpdoc_order.test',
'phpdoc_no_package,phpdoc_order.test',
];
Expand Down
@@ -0,0 +1,31 @@
--TEST--
Integration of fixers: indentation_type,phpdoc_indent.
--RULESET--
{"indentation_type": true, "phpdoc_indent": true}
--CONFIG--
{"indent": "\t", "lineEnding": "\n"}
--EXPECT--
<?php
class Foo
{
/**
* Guaranteed to be random
*/
public function getRandomNumber()
{
return 4;
}
}

--INPUT--
<?php
class Foo
{
/**
* Guaranteed to be random
*/
public function getRandomNumber()
{
return 4;
}
}