|
@@ -25,6 +25,14 @@ use PhpCsFixer\Tests\Test\AbstractFixerTestCase;
|
|
|
*/
|
|
|
final class PhpdocTypesFixerTest extends AbstractFixerTestCase
|
|
|
{
|
|
|
+ public function testWindowsLinebreaks()
|
|
|
+ {
|
|
|
+ $this->doTest(
|
|
|
+ "<?php /**\r\n * @param string|string[] \$bar\r\n *\r\n * @return int[]\r\n */\r\n",
|
|
|
+ "<?php /**\r\n * @param STRING|String[] \$bar\r\n *\r\n * @return inT[]\r\n */\r\n"
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
public function testConversion()
|
|
|
{
|
|
|
$expected = <<<'EOF'
|