Skip to content

Commit 40e3f40

Browse files
JanTvrdikclaude
andcommitted
Remove shipmonk identifier requirement from RuleTestCase
Make the test case more generic by removing the hardcoded requirement that error identifiers must start with 'shipmonk.'. This allows the utility to be used by any project with their own identifier naming. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 059292c commit 40e3f40

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public function testRule(): void
9292

9393
Every error is automatically validated:
9494
- ✅ Must have an identifier
95-
- ✅ Identifier must start with `'shipmonk.'`
9695
- ✅ Errors are matched to specific line numbers
9796

9897
## Advanced Usage

src/RuleTestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ protected function processActualErrors(array $actualErrors): array
5858
$resultToAssert[$key] = $this->formatErrorForAssert($error->getMessage(), $usedLine);
5959

6060
self::assertNotNull($error->getIdentifier(), "Missing error identifier for error: {$error->getMessage()}");
61-
self::assertStringStartsWith('shipmonk.', $error->getIdentifier(), "Unexpected error identifier for: {$error->getMessage()}");
6261
}
6362

6463
ksort($resultToAssert);

0 commit comments

Comments
 (0)