Skip to content

Commit 007c476

Browse files
committed
minor #4769 DX: add missing priority tests (kubawerlos)
This PR was merged into the 2.15 branch. Discussion ---------- DX: add missing priority tests Commits ------- 81512e2 DX: add missing priority tests
2 parents 3c74737 + 81512e2 commit 007c476

File tree

5 files changed

+92
-4
lines changed

5 files changed

+92
-4
lines changed

tests/AutoReview/FixerFactoryTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,8 @@ public function testFixersPriorityPairsHaveIntegrationTest(FixerInterface $first
290290
// It may only shrink, never add anything to it.
291291
$casesWithoutTests = [
292292
'indentation_type,phpdoc_indent.test',
293-
'method_separation,braces.test',
294293
'phpdoc_no_access,phpdoc_order.test',
295-
'phpdoc_no_access,phpdoc_separation.test',
296294
'phpdoc_no_package,phpdoc_order.test',
297-
'phpdoc_order,phpdoc_separation.test',
298-
'phpdoc_order,phpdoc_trim.test',
299295
];
300296

301297
$integrationTestName = $this->generateIntegrationTestName($first, $second);
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
--TEST--
2+
Integration of fixers: method_separation,braces.
3+
--RULESET--
4+
{"method_separation": true, "braces": true}
5+
--EXPECT--
6+
<?php
7+
8+
class Foo
9+
{
10+
/** bar */
11+
public function bar()
12+
{
13+
}
14+
15+
/** baz */
16+
public function baz()
17+
{
18+
}
19+
}
20+
21+
--INPUT--
22+
<?php
23+
24+
class Foo
25+
{
26+
/** bar */public function bar() {}/** baz */public function baz() {}
27+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Integration of fixers: phpdoc_no_access,phpdoc_separation.
3+
--RULESET--
4+
{"phpdoc_no_access": true, "phpdoc_separation": true}
5+
--EXPECT--
6+
<?php
7+
/**
8+
* @param $foo
9+
* @param $bar
10+
*
11+
* @return bool
12+
*/
13+
14+
--INPUT--
15+
<?php
16+
/**
17+
* @access public
18+
* @param $foo
19+
* @param $bar
20+
* @return bool
21+
*/
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--TEST--
2+
Integration of fixers: phpdoc_order,phpdoc_separation.
3+
--RULESET--
4+
{"phpdoc_order": true, "phpdoc_separation": true}
5+
--EXPECT--
6+
<?php
7+
/**
8+
* Hello World!
9+
*
10+
* @param $foo
11+
* @param $bar
12+
*
13+
* @return bool
14+
*/
15+
16+
--INPUT--
17+
<?php
18+
/**
19+
* Hello World!
20+
*
21+
* @return bool
22+
* @param $foo
23+
* @param $bar
24+
*/
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
Integration of fixers: phpdoc_order,phpdoc_trim.
3+
--RULESET--
4+
{"phpdoc_order": true, "phpdoc_trim": true}
5+
--EXPECT--
6+
<?php
7+
/**
8+
* @param $foo
9+
* @param $bar
10+
* @return bool
11+
*/
12+
13+
--INPUT--
14+
<?php
15+
/**
16+
* @return bool
17+
*
18+
* @param $foo
19+
* @param $bar
20+
*/

0 commit comments

Comments
 (0)