Skip to content

Commit

Permalink
Rename Spread Mutator to SpreadOneItem
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruGG authored and maks-rafalko committed Jul 4, 2021
1 parent 003f842 commit 9497615
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion resources/schema.json
Expand Up @@ -323,7 +323,7 @@
"NewObject": { "$ref": "#/definitions/default-mutator-config" },
"This": { "$ref": "#/definitions/default-mutator-config" },
"Spaceship": { "$ref": "#/definitions/default-mutator-config" },
"Spread": { "$ref": "#/definitions/default-mutator-config" },
"SpreadOneItem": { "$ref": "#/definitions/default-mutator-config" },
"SpreadAssignment": { "$ref": "#/definitions/default-mutator-config" },
"SpreadRemoval": { "$ref": "#/definitions/default-mutator-config" },
"Foreach_": { "$ref": "#/definitions/default-mutator-config" },
Expand Down
Expand Up @@ -46,7 +46,7 @@
*
* @implements Mutator<Node\Expr\ArrayItem>
*/
final class Spread implements Mutator
final class SpreadOneItem implements Mutator
{
use GetMutatorName;

Expand Down
4 changes: 2 additions & 2 deletions src/Mutator/ProfileList.php
Expand Up @@ -158,8 +158,8 @@ final class ProfileList
Mutator\Operator\Finally_::class,
Mutator\Operator\NullSafeMethodCall::class,
Mutator\Operator\NullSafePropertyCall::class,
Mutator\Operator\Spread::class,
Mutator\Operator\SpreadAssignment::class,
Mutator\Operator\SpreadOneItem::class,
Mutator\Operator\SpreadRemoval::class,
Mutator\Operator\Ternary::class,
Mutator\Operator\Throw_::class,
Expand Down Expand Up @@ -363,8 +363,8 @@ final class ProfileList
'Finally_' => Mutator\Operator\Finally_::class,
'NullSafeMethodCall' => Mutator\Operator\NullSafeMethodCall::class,
'NullSafePropertyCall' => Mutator\Operator\NullSafePropertyCall::class,
'Spread' => Mutator\Operator\Spread::class,
'SpreadAssignment' => Mutator\Operator\SpreadAssignment::class,
'SpreadOneItem' => Mutator\Operator\SpreadOneItem::class,
'SpreadRemoval' => Mutator\Operator\SpreadRemoval::class,
'Ternary' => Mutator\Operator\Ternary::class,
'Throw_' => Mutator\Operator\Throw_::class,
Expand Down
Expand Up @@ -37,7 +37,7 @@

use Infection\Tests\Mutator\BaseMutatorTestCase;

final class SpreadTest extends BaseMutatorTestCase
final class SpreadOneItemTest extends BaseMutatorTestCase
{
/**
* @requires PHP >= 7.4
Expand All @@ -52,7 +52,7 @@ public function test_it_can_mutate(string $input, $expected = []): void

public function mutationsProvider(): iterable
{
yield 'Spread for a raw array' => [
yield 'Spread one item for a raw array' => [
<<<'PHP'
<?php
Expand All @@ -67,7 +67,7 @@ public function mutationsProvider(): iterable
,
];

yield 'Spread for a variable' => [
yield 'Spread one item for a variable' => [
<<<'PHP'
<?php
Expand All @@ -82,7 +82,7 @@ public function mutationsProvider(): iterable
,
];

yield 'Spread for a function call' => [
yield 'Spread one item for a function call' => [
<<<'PHP'
<?php
Expand All @@ -97,7 +97,7 @@ public function mutationsProvider(): iterable
,
];

yield 'Spread for a method call' => [
yield 'Spread one item for a method call' => [
<<<'PHP'
<?php
Expand All @@ -112,7 +112,7 @@ public function mutationsProvider(): iterable
,
];

yield 'Spread for a new iterator object' => [
yield 'Spread one item for a new iterator object' => [
<<<'PHP'
<?php
Expand Down

0 comments on commit 9497615

Please sign in to comment.