* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\CS\Tests\Fixer\PSR2; use Symfony\CS\Tests\Fixer\AbstractFixerTestBase; /** * @author Kuanhung Chen */ class MethodArgumentSpaceFixerTest extends AbstractFixerTestBase { /** * @dataProvider testFixProvider */ public function testFix($expected, $input = null) { $this->makeTest($expected, $input); } public function testFixProvider() { return array( // test method arguments array( 'foo(), $c=30);', 'foo() ,$c=30);', ), // test receiving data in list context with omitted values array( '"apple", "b"=>"bed" ,"c"=>"car"]; $foo = ["a" ,"b" ,"c"]; ', ), // don't change HEREDOC and NOWDOC array( "foo( <<