public function testFixOnlyReturn() { $fixer = new PhpdocParamsAlignmentFixer(); $file = new \SplFileInfo(__FILE__); $expected = <<<'EOF' * @return Foo description foo EOF; $input = <<<'EOF' * @return Foo description foo EOF; $this->assertEquals($expected, $fixer->fix($file, $input)); }
public function testCustomAnnotationsStayUntouched() { $fixer = new PhpdocParamsAlignmentFixer(); $file = new \SplFileInfo(__FILE__); $expected = <<<'EOF' * @return string * @SuppressWarnings(PHPMD.UnusedLocalVariable) EOF; $input = <<<'EOF' * @return string * @SuppressWarnings(PHPMD.UnusedLocalVariable) EOF; $this->assertEquals($expected, $fixer->fix($file, $input)); }