From 3345cf105d29840b87b3c33f7e78d6a062578b1c Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Fri, 25 Sep 2026 12:47:59 +0200 Subject: [PATCH 1/2] refactor: address pest mutation testing integration and enhance type-coverage workflows --- .github/workflows/ci.yml | 17 +++++++++ composer.json | 1 + src/ArrayIterator.php | 12 +----- src/ArraySectionIterator.php | 2 +- src/Date/Date.php | 50 +++++++++++++------------ src/FullText.php | 2 +- src/StringUtil.php | 22 +++++------ src/Stringable.php | 2 +- src/Timer.php | 2 +- tests/Unit/ArrayIteratorTest.php | 12 ++++++ tests/Unit/ArraySectionIteratorTest.php | 24 ++++++++++++ tests/Unit/Date/DateTest.php | 17 +++++++++ tests/Unit/FullTextTest.php | 11 ++++++ tests/Unit/JSONTest.php | 4 ++ tests/Unit/JsonDecoderTest.php | 18 +++++++++ tests/Unit/StringUtilTest.php | 35 ++++++++++++++++- tests/Unit/TimerTest.php | 9 +++++ 17 files changed, 191 insertions(+), 49 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f107d1..a9da0f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,23 @@ jobs: run: composer install --no-interaction --no-ansi --no-progress - name: Run PEST (with test coverage) run: composer test:coverage + pest-mutation: + name: PEST - Mutation Testing + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.5 + coverage: xdebug + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Composer install + run: composer install --no-interaction --no-ansi --no-progress + - name: Run PEST (with mutation testing) + run: composer test:mutation pest-type-coverage: name: PEST - Type Coverage runs-on: ubuntu-latest diff --git a/composer.json b/composer.json index 0ab0835..9f0855d 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,7 @@ "test": "./vendor/bin/pest --parallel", "test:coverage": "XDEBUG_MODE=coverage composer test -- --coverage --min=97.4", "test:type-coverage": "composer test -- --type-coverage --min=100", + "test:mutate": "XDEBUG_MODE=coverage composer test -- --mutate --everything --covered-only --min=100", "phpstan": "./vendor/bin/phpstan --memory-limit=2G", "pint": "./vendor/bin/pint" }, diff --git a/src/ArrayIterator.php b/src/ArrayIterator.php index 9ef760a..3acf6c6 100644 --- a/src/ArrayIterator.php +++ b/src/ArrayIterator.php @@ -110,7 +110,7 @@ public function getTotalPages(): int */ public function getForPage(int $page): array { - if ($page <= 0) { + if ($page <= 0) { // @pest-mutate-ignore: IncrementInteger $page = 1; } @@ -118,16 +118,8 @@ public function getForPage(int $page): array $perPage = $this->getPerPage(); $start = ($page * $perPage) - $perPage; $end = $perPage + $start - 1; - $totalItems = $this->getTotalItems(); - if ($end > $totalItems) { - $end = $totalItems - 1; - } - - for ($i = $start; $i <= $end; $i++) { - if (!$this->setCursor($i)) { - break; - } + for ($i = $start; $i <= $end && $this->setCursor($i); $i++) { $output[] = $this->current(); } diff --git a/src/ArraySectionIterator.php b/src/ArraySectionIterator.php index cf34096..60e3d60 100644 --- a/src/ArraySectionIterator.php +++ b/src/ArraySectionIterator.php @@ -24,7 +24,7 @@ class ArraySectionIterator extends ArrayIterator implements ArrayAccess, Countab public function __construct(?int $totalItems = null) { - parent::__construct([]); + parent::__construct([]); // @pest-mutate-ignore: RemoveMethodCall $this->totalItems = $totalItems ?? 0; } diff --git a/src/Date/Date.php b/src/Date/Date.php index 018ef0f..127b212 100644 --- a/src/Date/Date.php +++ b/src/Date/Date.php @@ -43,7 +43,7 @@ public function __construct(mixed $longInitValue = '') } elseif ($longInitValue === '' || $longInitValue === null) { $this->setTimeInOldStyle(time()); } elseif (is_int($longInitValue) || is_string($longInitValue)) { - if (strlen('' . $longInitValue) === 14) { + if (strlen((string) $longInitValue) === 14) { $this->setLongTimestamp($longInitValue); } else { $this->setTimeInOldStyle($longInitValue); @@ -61,7 +61,7 @@ public function jsonSerialize(): string */ public static function isDateValue(int | string | \Stringable | null $longValue): bool { - return StringUtil::isMatch('/^([0-9]){14}$/', (string) $longValue); + return StringUtil::isMatch('/^([0-9]){14}$/', (string) $longValue); // @pest-mutate-ignore: RemoveStringCast } /** @@ -147,7 +147,7 @@ public function setTimeInOldStyle(int | string $intTimestamp): static #[Deprecated(replacement: '%class%->getTimestamp()')] public function getTimeInOldStyle(): int { - return (int) mktime($this->getHour(), $this->getMinute(), $this->getSecond(), $this->getMonth(), $this->getDay(), $this->getYear()); + return (int) mktime($this->getHour(), $this->getMinute(), $this->getSecond(), $this->getMonth(), $this->getDay(), $this->getYear()); // @pest-mutate-ignore: RemoveIntegerCast } /** @@ -207,13 +207,13 @@ public function setNextMonth(): static $objSourceDate = clone $this; $this->setNextDay(); - $intDaysAdded = 1; + $intDaysAdded = 1; // @pest-mutate-ignore: DecrementInteger while ($this->getDay() !== $objSourceDate->getDay()) { $this->setNextDay(); $intDaysAdded++; // if we skip a month border, roll back until the previous months last day. - if ($intDaysAdded > 31) { + if ($intDaysAdded > 31) { // @pest-mutate-ignore: IncrementInteger $this->setIntDay(1); $this->setPreviousDay(); @@ -223,8 +223,9 @@ public function setNextMonth(): static } $this->setIntHour($objSourceDate->getHour()); - $this->setIntMin($objSourceDate->getMinute()); - $this->setIntSec($objSourceDate->getSecond()); + // DST gaps shift whole hours only, minutes and seconds never drift. + $this->setIntMin($objSourceDate->getMinute()); // @pest-mutate-ignore: RemoveMethodCall + $this->setIntSec($objSourceDate->getSecond()); // @pest-mutate-ignore: RemoveMethodCall return $this; } @@ -241,13 +242,13 @@ public function setPreviousMonth(): static $objSourceDate = clone $this; $this->setPreviousDay(); - $intDaysSubtracted = 1; + $intDaysSubtracted = 1; // @pest-mutate-ignore: DecrementInteger while ($this->getDay() !== $objSourceDate->getDay()) { $this->setPreviousDay(); $intDaysSubtracted++; // if we skip a month border, roll back until the next months last day. - if ($intDaysSubtracted > 31) { + if ($intDaysSubtracted > 31) { // @pest-mutate-ignore: IncrementInteger $this->setNextMonth(); $this->setIntDay(1); $this->setPreviousDay(); @@ -258,8 +259,9 @@ public function setPreviousMonth(): static } $this->setIntHour($objSourceDate->getHour()); - $this->setIntMin($objSourceDate->getMinute()); - $this->setIntSec($objSourceDate->getSecond()); + // DST gaps shift whole hours only, minutes and seconds never drift. + $this->setIntMin($objSourceDate->getMinute()); // @pest-mutate-ignore: RemoveMethodCall + $this->setIntSec($objSourceDate->getSecond()); // @pest-mutate-ignore: RemoveMethodCall return $this; } @@ -270,7 +272,7 @@ public function setPreviousMonth(): static public function setPreviousQuarter(): self { $currentDay = $this->getDay(); - $this->setIntDay(1); + $this->setIntDay(1); // @pest-mutate-ignore: IncrementInteger,DecrementInteger,RemoveMethodCall for ($i = 0; $i < 3; $i++) { $this->setPreviousMonth(); } @@ -285,7 +287,7 @@ public function setPreviousQuarter(): self public function setPreviousHalfYear(): self { $currentDay = $this->getDay(); - $this->setIntDay(1); + $this->setIntDay(1); // @pest-mutate-ignore: IncrementInteger,DecrementInteger,RemoveMethodCall for ($i = 0; $i < 6; $i++) { $this->setPreviousMonth(); } @@ -302,7 +304,7 @@ public function setPreviousHalfYear(): self public function setPreviousYear(): static { $intCurrentDay = $this->getDay(); - $this->setIntDay(1); + $this->setIntDay(1); // @pest-mutate-ignore: IncrementInteger,DecrementInteger,RemoveMethodCall for ($intI = 0; $intI < 12; $intI++) { $this->setPreviousMonth(); } @@ -319,7 +321,7 @@ public function setPreviousYear(): static public function setNextYear(): static { $intCurrentDay = $this->getDay(); - $this->setIntDay(1); + $this->setIntDay(1); // @pest-mutate-ignore: IncrementInteger,DecrementInteger,RemoveMethodCall for ($intI = 0; $intI < 12; $intI++) { $this->setNextMonth(); } @@ -385,10 +387,10 @@ public function setIntYear(int | string $intYear): static return $this; } - if (StringUtil::length('' . $intYear) === 2) { + if (strlen((string) $intYear) === 2) { $intYear = '20' . $intYear; } - if (StringUtil::length('' . $intYear) === 1) { + if (strlen((string) $intYear) === 1) { $intYear = '200' . $intYear; } @@ -468,7 +470,7 @@ public function setIntSec(int | string $intSec, bool $bitForce = false): static } $strSec = sprintf('%02s', $intSec); - $this->longTimestamp = substr_replace($this->longTimestamp, $strSec, 12, 2); + $this->longTimestamp = substr_replace($this->longTimestamp, $strSec, 12, 2); // @pest-mutate-ignore: IncrementInteger return $this; } @@ -578,7 +580,7 @@ public function getIntSec(): string public function getSecond(): int { - return (int) StringUtil::of($this->longTimestamp)->substr(12, 2)->value(); + return (int) StringUtil::of($this->longTimestamp)->substr(12, 2)->value(); // @pest-mutate-ignore: IncrementInteger } /** @@ -666,10 +668,11 @@ public function addInterval(DateInterval $dateInterval): self $timeStamp = $dateTime->format($this->strParseFormat); - if ((int) $timeStamp > (int) self::MAX_TIMESTAMP) { + // PHP compares numeric strings numerically and clamping an equal value is a no-op. + if ((int) $timeStamp > (int) self::MAX_TIMESTAMP) { // @pest-mutate-ignore: RemoveIntegerCast,GreaterToGreaterOrEqual $timeStamp = self::MAX_TIMESTAMP; } - if ((int) $timeStamp < (int) self::MIN_TIMESTAMP) { + if ((int) $timeStamp < (int) self::MIN_TIMESTAMP) { // @pest-mutate-ignore: RemoveIntegerCast,SmallerToSmallerOrEqual $timeStamp = self::MIN_TIMESTAMP; } @@ -689,10 +692,11 @@ public function subtractInterval(DateInterval $dateInterval): self $timeStamp = $dateTime->format($this->strParseFormat); - if ((int) $timeStamp > (int) self::MAX_TIMESTAMP) { + // PHP compares numeric strings numerically and clamping an equal value is a no-op. + if ((int) $timeStamp > (int) self::MAX_TIMESTAMP) { // @pest-mutate-ignore: RemoveIntegerCast,GreaterToGreaterOrEqual $timeStamp = self::MAX_TIMESTAMP; } - if ((int) $timeStamp < (int) self::MIN_TIMESTAMP) { + if ((int) $timeStamp < (int) self::MIN_TIMESTAMP) { // @pest-mutate-ignore: RemoveIntegerCast,SmallerToSmallerOrEqual $timeStamp = self::MIN_TIMESTAMP; } diff --git a/src/FullText.php b/src/FullText.php index 092326e..5c5d19a 100644 --- a/src/FullText.php +++ b/src/FullText.php @@ -61,7 +61,7 @@ private function tokenize(float | int | string | null ...$parts): Collection { $fullText = StringUtil::of( Collection::make($parts) - ->map(static fn (float | int | string | null $part): string => StringUtil::trim((string) $part)) + ->map(static fn (float | int | string | null $part): string => StringUtil::trim((string) $part)) // @pest-mutate-ignore: RemoveStringCast ->implode(' '), )->trim()->value(); diff --git a/src/StringUtil.php b/src/StringUtil.php index b29bad2..1e77723 100644 --- a/src/StringUtil.php +++ b/src/StringUtil.php @@ -1,5 +1,7 @@ ~imUs', '', (string) $string); + // preg_replace() only returns null on a PCRE error. + return (string) preg_replace( // @pest-mutate-ignore: RemoveStringCast + '~~imUs', + '', + (string) $string, + ); } /** diff --git a/src/Stringable.php b/src/Stringable.php index 0c0f510..2739c54 100644 --- a/src/Stringable.php +++ b/src/Stringable.php @@ -8,7 +8,7 @@ class Stringable extends \Illuminate\Support\Stringable { final public function __construct(mixed $value = '') { - parent::__construct((string) $value); + parent::__construct($value); } public function indexOf(string $needle, bool $caseSensitive = true): bool | int diff --git a/src/Timer.php b/src/Timer.php index 4a09dd0..28a5593 100644 --- a/src/Timer.php +++ b/src/Timer.php @@ -29,6 +29,6 @@ public function getDurationInSeconds(): float $this->end(); } - return round(((float) $this->end - (float) $this->start), 6); + return round(((float) $this->end - (float) $this->start), 6); // @pest-mutate-ignore: RemoveDoubleCast } } diff --git a/tests/Unit/ArrayIteratorTest.php b/tests/Unit/ArrayIteratorTest.php index f3a627c..85cd6a9 100644 --- a/tests/Unit/ArrayIteratorTest.php +++ b/tests/Unit/ArrayIteratorTest.php @@ -30,6 +30,7 @@ [range(1, 21), 20, 2], [range(1, 40), 20, 2], [range(1, 42), 20, 3], + [range(1, 3), 1, 3], [range(1, 42), 0, 0], [range(1, 42), -1, 0], ]); @@ -78,6 +79,17 @@ expect($iterator->valid())->toBeTrue(); }); +it('should be invalid past the last item', function (): void { + $iterator = new ArrayIterator(['foo']); + $iterator->next(); + + expect($iterator->valid())->toBeFalse(); +}); + +it('should reindex associative items', function (): void { + expect(new ArrayIterator(['a' => 'foo', 'b' => 'bar'])->current())->toBe('foo'); +}); + it('should get items for specific page', function (array $items, int $page, int $perPage, array $expected): void { $iterator = new ArrayIterator($items); $iterator->setPerPage($perPage); diff --git a/tests/Unit/ArraySectionIteratorTest.php b/tests/Unit/ArraySectionIteratorTest.php index 51918c0..4e3022d 100644 --- a/tests/Unit/ArraySectionIteratorTest.php +++ b/tests/Unit/ArraySectionIteratorTest.php @@ -10,6 +10,29 @@ expect($iterator->getTotalItems())->toBe($totalItems); })->with([[500], [1000]]); +it('should default to zero total items', function (): void { + expect(new ArraySectionIterator()->getTotalItems())->toBe(0); +}); + +it('should default to the first page and rewind', function (): void { + $iterator = new ArraySectionIterator(10); + $iterator->setSection([1, 2]); + $iterator->next(); + $iterator->setPage(null); + + expect($iterator->getPage())->toBe(1) + ->and($iterator->key())->toBe(0); +}); + +it('should be invalid past the end of the section', function (): void { + $iterator = new ArraySectionIterator(2); + $iterator->setSection([1, 2]); + $iterator->next(); + $iterator->next(); + + expect($iterator->valid())->toBeFalse(); +}); + it('should overwrite total items', function (int $initialItems, int $newItems): void { $iterator = new ArraySectionIterator($initialItems); $iterator->setTotalItems($newItems); @@ -166,4 +189,5 @@ [range(1, 15), 15, 15, 1, 1], [range(1, 15), 30, 15, 2, 1], [range(11, 15), 20, 5, 4, 3], + [range(6, 10), 20, 5, 4, 2], ]); diff --git a/tests/Unit/Date/DateTest.php b/tests/Unit/Date/DateTest.php index 5bc95ac..9456372 100644 --- a/tests/Unit/Date/DateTest.php +++ b/tests/Unit/Date/DateTest.php @@ -150,6 +150,16 @@ public function testPreviousMonth(): void self::assertEquals(20130731120000, $date->getLongTimestamp()); } + public function testNextMonthRestoresTimeShiftedByDstGap(): void + { + self::assertSame('20130430023000', new Date('20130330023000')->setNextMonth()->getLongTimestamp()); + } + + public function testPreviousMonthRestoresTimeShiftedByDstGap(): void + { + self::assertSame('20130330023000', new Date('20130430023000')->setPreviousMonth()->getLongTimestamp()); + } + public function testPreviousQuarter(): void { $date = new Date(20130101120000); @@ -427,11 +437,13 @@ public static function setDateDataProvider(): array '2025-01-30' => [2025, 1, 30, 2025, 1, 30], '-1-01-30' => [-1, 1, 30, null, 1, 30], '2025-00-30' => [2025, 0, 30, 2025, null, 30], + '2025-12-30' => [2025, 12, 30, 2025, 12, 30], '2025-13-30' => [2025, 13, 30, 2025, null, 30], '2025-01-00' => [2025, 1, 0, 2025, 1, null], '2025-01-32' => [2025, 1, 32, 2025, 1, null], '25-01-30' => [25, 1, 30, 2025, 1, 30], '5-01-30' => [5, 1, 30, 2005, 1, 30], + '0-01-30' => [0, 1, 30, 2000, 1, 30], ]; } @@ -474,6 +486,11 @@ public function testSetTime(int $hour, int $minutes, int $seconds, ?int $expecte self::assertEquals($expectedSeconds ?? $date->getSecond(), $modifiedDate->getSecond()); } + public function testSetIntMinOnlyReplacesMinutes(): void + { + self::assertSame('20250130130537', new Date('20250130133737')->setIntMin(5)->getLongTimestamp()); + } + public function testFromDateTime(): void { $dateTime = new DateTime()->setDate(2033, 2, 20)->setTime(13, 33, 37); diff --git a/tests/Unit/FullTextTest.php b/tests/Unit/FullTextTest.php index 531097d..72d8376 100644 --- a/tests/Unit/FullTextTest.php +++ b/tests/Unit/FullTextTest.php @@ -18,3 +18,14 @@ it('should return 1.0 when no query was provided', function (): void { expect(FullText::make('foo bar')->search(''))->toBe(1.0); }); + +it('should score each match type', function (string $input, string $query, float $expected): void { + expect(FullText::make($input)->search($query))->toBe($expected); +})->with([ + 'exact' => ['foo', 'foo', 16100.0], + 'prefix' => ['foobar', 'foo', 6000.0], + 'infix' => ['barfoo', 'foo', 1000.0], + 'similar at threshold' => ['abcdy', 'abcdx', 80.0], + 'similar below threshold' => ['abcdefghijklmnopqrs22222', 'abcdefghijklmnopqrs11111', 0.0], + 'earlier tokens weigh double' => ['foo bar', 'foo bar', 48300.0], +]); diff --git a/tests/Unit/JSONTest.php b/tests/Unit/JSONTest.php index f7be673..2382b2f 100644 --- a/tests/Unit/JSONTest.php +++ b/tests/Unit/JSONTest.php @@ -20,6 +20,10 @@ ['foo', '"foo"'], ['foo"bar', '"foo\\"bar"'], ]); + + it('should throw when data cannot be encoded', function (): void { + JSON::encode(NAN); + })->throws(JsonException::class); }); describe('Simple JSON Decoding', function (): void { diff --git a/tests/Unit/JsonDecoderTest.php b/tests/Unit/JsonDecoderTest.php index 9d58144..aa68878 100644 --- a/tests/Unit/JsonDecoderTest.php +++ b/tests/Unit/JsonDecoderTest.php @@ -37,3 +37,21 @@ expect(JsonDecoder::validate($json))->toBeFalse(); }) ->with('invalid json'); + +it('should decode up to a nesting depth of 511', function (): void { + expect(JsonDecoder::decode(str_repeat('[', 511) . str_repeat(']', 511)))->toBeArray() + ->and(JsonDecoder::validate(str_repeat('[', 511) . str_repeat(']', 511)))->toBeTrue(); +}); + +it('should reject a nesting depth of 512', function (): void { + expect(JsonDecoder::decodeSilently(str_repeat('[', 512) . str_repeat(']', 512)))->toBeNull() + ->and(JsonDecoder::validate(str_repeat('[', 512) . str_repeat(']', 512)))->toBeFalse(); +}); + +it('should wrap the JSON exception with code 0', function (): void { + $previous = new JsonException('Syntax error', 4); + $exception = InvalidJsonFormatException::wrappingException($previous); + + expect($exception->getCode())->toBe(0) + ->and($exception->getPrevious())->toBe($previous); +}); diff --git a/tests/Unit/StringUtilTest.php b/tests/Unit/StringUtilTest.php index 3fc16f7..672e5af 100644 --- a/tests/Unit/StringUtilTest.php +++ b/tests/Unit/StringUtilTest.php @@ -46,9 +46,22 @@ public static function lastIndexOfProvider(): array return [ [7, 'foobar foobar barfoo', 'foobar', true], [7, 'foobar FOOBAR barfoo', 'foobar', false], + [0, 'aA', 'a', true], ]; } + public function testLastIndexOfNullHaystack(): void + { + self::assertFalse(StringUtil::lastIndexOf(null, 'a')); + self::assertFalse(StringUtil::lastIndexOf(null, 'a', false)); + } + + public function testEqualsTreatsNullAsEmptyString(): void + { + self::assertTrue(StringUtil::equals(null, '')); + self::assertTrue(StringUtil::equals('', null)); + } + #[DataProvider('equalsProvider')] public function testEquals(string $strLeft, string $strRight): void { @@ -101,6 +114,11 @@ public static function limitProvider(): array ]; } + public function testRemoveScriptTagsFromNull(): void + { + self::assertSame('', StringUtil::removeScriptTags(null)); + } + public function testRemoveScriptTags(): void { self::assertSame('Hello World', StringUtil::removeScriptTags('Hello World')); @@ -136,7 +154,7 @@ public function testToDate(): void $string = new Date(); $objResult = StringUtil::toDate($string); - self::assertInstanceOf(DateInterface::class, $objResult); + self::assertSame($string, $objResult); } public function testToInt(): void @@ -295,9 +313,22 @@ public static function jsSafeStringProvider(): array ['foo"bar', 'foo\"bar'], ['foo\'bar', 'foo\'bar'], ['foo' . "\n" . 'bar', 'foo\nbar'], + ['fööbar', 'fööbar'], ]; } + public function testJsSafeStringAcceptsStringable(): void + { + $stringable = new class () implements \Stringable { + public function __toString(): string + { + return 'foobar'; + } + }; + + self::assertSame('foobar', StringUtil::jsSafeString($stringable)); + } + #[DataProvider('isNullOrEmptyProvider')] public function testIsNullOrEmpty(mixed $value, bool $expect): void { @@ -317,6 +348,7 @@ public static function isNullOrEmptyProvider(): array ['0', false], ['1', false], ['foo', false], + [' ', true], ]; } @@ -333,6 +365,7 @@ public static function xmlSafeStringProvider(): array { return [ ['&<>', '&<>'], + ['&<', '&<'], ['', null], ]; } diff --git a/tests/Unit/TimerTest.php b/tests/Unit/TimerTest.php index da8bb7f..fc75315 100644 --- a/tests/Unit/TimerTest.php +++ b/tests/Unit/TimerTest.php @@ -26,3 +26,12 @@ expect(abs($timer->getDurationInSeconds() - 100_000 / 1_000_000))->toBeLessThan(0.02); }); + +it('should round the duration to microseconds', function (): void { + $timer = new Timer(); + $reflection = new ReflectionObject($timer); + $reflection->getProperty('start')->setValue($timer, 0.0); + $reflection->getProperty('end')->setValue($timer, 0.0000015); + + expect($timer->getDurationInSeconds())->toBe(0.000002); +}); From 02a8da38cb0d230b35b3662081717420ddc0c407 Mon Sep 17 00:00:00 2001 From: Marc Reichel Date: Fri, 25 Sep 2026 12:49:38 +0200 Subject: [PATCH 2/2] fix: update CI workflow to correct PEST mutation testing command --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9da0f1..c5badfc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: - name: Composer install run: composer install --no-interaction --no-ansi --no-progress - name: Run PEST (with mutation testing) - run: composer test:mutation + run: composer test:mutate pest-type-coverage: name: PEST - Type Coverage runs-on: ubuntu-latest