mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
wip
This commit is contained in:
@ -8,6 +8,7 @@ use Closure;
|
||||
use Pest\Exceptions\InvalidArgumentException;
|
||||
use Pest\Factories\Attribute;
|
||||
use Pest\Factories\TestCaseMethodFactory;
|
||||
use Pest\Mutate\Decorators\TestCallDecorator as MutationTestCallDecorator;
|
||||
use Pest\PendingCalls\Concerns\Describable;
|
||||
use Pest\Plugins\Only;
|
||||
use Pest\Support\Backtrace;
|
||||
@ -448,6 +449,19 @@ final class TestCall
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables mutation testing
|
||||
*/
|
||||
public function mutate(string $profile = 'default'): self|MutationTestCallDecorator
|
||||
{
|
||||
if (class_exists(MutationTestCallDecorator::class)) {
|
||||
return (new MutationTestCallDecorator($this))
|
||||
->mutate($profile);
|
||||
}
|
||||
|
||||
return $this->__call('mutate', [$profile]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the Call.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user