* Dariusz Rumiński * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Tests\Fixer\Whitespace; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /** * @author Marc Aubé * * @internal * * @covers \PhpCsFixer\Fixer\Whitespace\NoSpacesInsideParenthesisFixer */ final class NoSpacesInsideParenthesisFixerTest extends AbstractFixerTestCase { /** * @param string $expected * @param null|string $input * * @dataProvider provideFixCases */ public function testFix($expected, $input = null) { $this->doTest($expected, $input); } public function testLeaveNewLinesAlone() { $expected = <<<'EOF' doTest($expected); } public function provideFixCases() { return [ [ 'bar($arg1, $arg2);', 'bar( $arg1, $arg2 );', ], [ 'test( // do not remove space $e // between `(` and `)` // and this comment );', ], ]; } }