* 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\PhpUnit; use PhpCsFixer\Fixer\PhpUnit\PhpUnitMethodCasingFixer; use PhpCsFixer\Tests\Test\AbstractFixerTestCase; /** * @author Filippo Tessarotto * * @internal * * @covers \PhpCsFixer\Fixer\PhpUnit\PhpUnitMethodCasingFixer */ final class PhpUnitMethodCasingFixerTest extends AbstractFixerTestCase { /** * @dataProvider provideFixCases * * @param string $expected * @param null|string $input */ public function testFixToCamelCase($expected, $input = null) { $this->doTest($expected, $input); } /** * @dataProvider provideFixCases * * @param mixed $camelExpected * @param null|mixed $camelInput */ public function testFixToSnakeCase($camelExpected, $camelInput = null) { if (null === $camelInput) { $expected = $camelExpected; $input = $camelInput; } else { $expected = $camelInput; $input = $camelExpected; } $this->fixer->configure(['case' => PhpUnitMethodCasingFixer::SNAKE_CASE]); $this->doTest($expected, $input); } /** * @return array */ public function provideFixCases() { return [ 'skip non phpunit methods' => [ ' [ ' [ ' [ ' [ ' [ '