mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
feat(mutate): requires it by default
This commit is contained in:
@ -636,14 +636,9 @@ final class TestCall
|
|||||||
/**
|
/**
|
||||||
* Mutates the test.
|
* Mutates the test.
|
||||||
*/
|
*/
|
||||||
public function mutate(string $profile = 'default'): self|MutationTestCallDecorator // @phpstan-ignore-line
|
public function mutate(string $profile = 'default'): self|MutationTestCallDecorator
|
||||||
{
|
{
|
||||||
if (class_exists(MutationTestCallDecorator::class)) {
|
return (new MutationTestCallDecorator($this))->mutate($profile);
|
||||||
return (new MutationTestCallDecorator($this))
|
|
||||||
->mutate($profile);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->__call('mutate', [$profile]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -37,6 +37,7 @@ arch('dependencies')
|
|||||||
'Termwind',
|
'Termwind',
|
||||||
'ParaTest',
|
'ParaTest',
|
||||||
'Pest\Arch',
|
'Pest\Arch',
|
||||||
|
'Pest\Mutate\Decorators\TestCallDecorator',
|
||||||
'Pest\Plugin',
|
'Pest\Plugin',
|
||||||
'NunoMaduro\Collision',
|
'NunoMaduro\Collision',
|
||||||
'Whoops',
|
'Whoops',
|
||||||
|
|||||||
Reference in New Issue
Block a user