diff --git a/src/Mutator/Unwrap/UnwrapLcFirst.php b/src/Mutator/Unwrap/UnwrapLcFirst.php new file mode 100644 index 000000000..4a8cf6eab --- /dev/null +++ b/src/Mutator/Unwrap/UnwrapLcFirst.php @@ -0,0 +1,54 @@ + Mutator\Unwrap\UnwrapArrayUintersectUassoc::class, 'UnwrapArrayUnique' => Mutator\Unwrap\UnwrapArrayUnique::class, 'UnwrapArrayValues' => Mutator\Unwrap\UnwrapArrayValues::class, + 'UnwrapLcFirst' => Mutator\Unwrap\UnwrapLcFirst::class, 'UnwrapStrRepeat' => Mutator\Unwrap\UnwrapStrRepeat::class, 'UnwrapStrToLower' => Mutator\Unwrap\UnwrapStrToLower::class, 'UnwrapStrToUpper' => Mutator\Unwrap\UnwrapStrToUpper::class, diff --git a/tests/Mutator/Unwrap/UnwrapLcFirstTest.php b/tests/Mutator/Unwrap/UnwrapLcFirstTest.php new file mode 100644 index 000000000..953dc10ac --- /dev/null +++ b/tests/Mutator/Unwrap/UnwrapLcFirstTest.php @@ -0,0 +1,184 @@ +doTest($input, $expected); + } + + public function provideMutationCases(): \Generator + { + yield 'It mutates correctly when provided with a string' => [ + <<<'PHP' + [ + <<<'PHP' + [ + <<<'PHP' + [ + <<<'PHP' + [ + <<<'PHP' + [ + <<<'PHP' +bar()); +PHP + , + <<<'PHP' +bar(); +PHP + ]; + + yield 'It mutates correctly when provided with a more complex situation' => [ + <<<'PHP' + [ + <<<'PHP' + [ + <<<'PHP' +