|
@@ -469,4 +469,47 @@ EOF;
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ public function testFixUnicode()
|
|
|
+ {
|
|
|
+ $expected = <<<'EOF'
|
|
|
+<?php
|
|
|
+ /**
|
|
|
+ * Method test.
|
|
|
+ *
|
|
|
+ * @param int $foobar Description
|
|
|
+ * @param string $foo Description
|
|
|
+ * @param mixed $bar Description word_with_ą
|
|
|
+ * @param int|null $test Description
|
|
|
+ */
|
|
|
+ $a = 1;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable) word_with_ą
|
|
|
+ */
|
|
|
+ $b = 1;
|
|
|
+EOF;
|
|
|
+
|
|
|
+ $input = <<<'EOF'
|
|
|
+<?php
|
|
|
+ /**
|
|
|
+ * Method test.
|
|
|
+ *
|
|
|
+ * @param int $foobar Description
|
|
|
+ * @param string $foo Description
|
|
|
+ * @param mixed $bar Description word_with_ą
|
|
|
+ * @param int|null $test Description
|
|
|
+ */
|
|
|
+ $a = 1;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable) word_with_ą
|
|
|
+ */
|
|
|
+ $b = 1;
|
|
|
+EOF;
|
|
|
+
|
|
|
+ $this->doTest($expected, $input);
|
|
|
+ }
|
|
|
}
|