mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
wip
This commit is contained in:
@ -8,6 +8,7 @@ use Pest\Exceptions\AfterAllWithinDescribe;
|
|||||||
use Pest\Exceptions\BeforeAllWithinDescribe;
|
use Pest\Exceptions\BeforeAllWithinDescribe;
|
||||||
use Pest\Expectation;
|
use Pest\Expectation;
|
||||||
use Pest\Mutate\Contracts\MutationTestRunner;
|
use Pest\Mutate\Contracts\MutationTestRunner;
|
||||||
|
use Pest\Mutate\Repositories\ConfigurationRepository;
|
||||||
use Pest\PendingCalls\AfterEachCall;
|
use Pest\PendingCalls\AfterEachCall;
|
||||||
use Pest\PendingCalls\BeforeEachCall;
|
use Pest\PendingCalls\BeforeEachCall;
|
||||||
use Pest\PendingCalls\DescribeCall;
|
use Pest\PendingCalls\DescribeCall;
|
||||||
@ -231,8 +232,11 @@ if (! function_exists('covers')) {
|
|||||||
|
|
||||||
/** @var MutationTestRunner $runner */
|
/** @var MutationTestRunner $runner */
|
||||||
$runner = Container::getInstance()->get(MutationTestRunner::class);
|
$runner = Container::getInstance()->get(MutationTestRunner::class);
|
||||||
|
/** @var \Pest\Mutate\Repositories\ConfigurationRepository $configurationRepository */
|
||||||
|
$configurationRepository = Container::getInstance()->get(ConfigurationRepository::class);
|
||||||
|
$configuration = $configurationRepository->mergedConfiguration();
|
||||||
|
|
||||||
if ($runner->isEnabled()) {
|
if ($runner->isEnabled() && ! $configuration->everything) {
|
||||||
$beforeEachCall->only('__pest_mutate_only');
|
$beforeEachCall->only('__pest_mutate_only');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user