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.
|
||||
*/
|
||||
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 $this->__call('mutate', [$profile]);
|
||||
return (new MutationTestCallDecorator($this))->mutate($profile);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -37,6 +37,7 @@ arch('dependencies')
|
||||
'Termwind',
|
||||
'ParaTest',
|
||||
'Pest\Arch',
|
||||
'Pest\Mutate\Decorators\TestCallDecorator',
|
||||
'Pest\Plugin',
|
||||
'NunoMaduro\Collision',
|
||||
'Whoops',
|
||||
|
||||
Reference in New Issue
Block a user