🆙 Add cms i using 🆙

This commit is contained in:
Remco
2025-11-25 22:42:56 +01:00
parent 94704e0925
commit d44196149e
35591 changed files with 3601123 additions and 0 deletions
@@ -0,0 +1,53 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
interface Configuration
{
/**
* @param array<int, string>|string ...$paths
*/
public function path(array|string ...$paths): self;
/**
* @param array<int, string>|string ...$paths
*/
public function ignore(array|string ...$paths): self;
/**
* @param array<int, class-string<Mutator|MutatorSet>>|class-string<Mutator|MutatorSet> ...$mutators
*/
public function mutator(array|string ...$mutators): self;
/**
* @param array<int, class-string<Mutator|MutatorSet>>|class-string<Mutator|MutatorSet> ...$mutators
*/
public function except(array|string ...$mutators): self;
public function min(float $minScore, ?bool $failOnZeroMutations = null): self;
public function ignoreMinScoreOnZeroMutations(bool $ignore = true): self;
public function coveredOnly(bool $coveredOnly = true): self;
public function parallel(bool $parallel = true): self;
public function processes(?int $processes = null): self;
public function profile(bool $profile = true): self;
public function stopOnUntested(bool $stopOnUntested = true): self;
public function stopOnUncovered(bool $stopOnUncovered = true): self;
public function bail(): self;
/**
* @param array<int, class-string>|class-string ...$classes
*/
public function class(array|string ...$classes): self;
public function retry(bool $retry = true): self;
}
@@ -0,0 +1,7 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
interface Event {}
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
interface MutationTestRunner
{
public function enable(): void;
public function isEnabled(): bool;
/**
* @param array<int, string> $arguments
*/
public function setOriginalArguments(array $arguments): void;
public function setStartTime(float $startTime): void;
public function isCodeCoverageRequested(): bool;
public function run(): int;
}
@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
use PhpParser\Node;
interface Mutator
{
/**
* @return array<int, class-string<Node>>
*/
public static function nodesToHandle(): array;
public static function name(): string;
public static function set(): string;
public static function can(Node $node): bool;
public static function mutate(Node $node): Node|int;
}
@@ -0,0 +1,15 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
interface MutatorSet
{
/**
* @return array<int, class-string<Mutator>>
*/
public static function mutators(): array;
public static function name(): string;
}
@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
use Pest\Mutate\MutationSuite;
use Pest\Mutate\MutationTest;
use Pest\Mutate\MutationTestCollection;
interface Printer
{
public function compact(): void;
public function reportTestedMutation(MutationTest $test): void;
public function reportUntestedMutation(MutationTest $test): void;
public function reportUncoveredMutation(MutationTest $test): void;
public function reportTimedOutMutation(MutationTest $test): void;
public function reportError(string $message): void;
public function reportScoreNotReached(float $scoreReached, float $scoreRequired): void;
public function printFilename(MutationTestCollection $testCollection): void;
public function reportMutationGenerationStarted(MutationSuite $mutationSuite): void;
public function reportMutationGenerationFinished(MutationSuite $mutationSuite): void;
public function reportMutationSuiteStarted(MutationSuite $mutationSuite): void;
public function reportMutationSuiteFinished(MutationSuite $mutationSuite): void;
}
@@ -0,0 +1,7 @@
<?php
declare(strict_types=1);
namespace Pest\Mutate\Contracts;
interface Subscriber {}