The PHP Unit Testing framework.
This report summarizes scanner evidence for sebastianbergmann/phpunit, a PHP project with 20,059 GitHub stars. SynthScan examined 244,632 lines of code across 3622 source files, recording 3866 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 15.9 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3865 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 3858 finding(s).
Which changes need focused human review? 3866 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 3866 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/TextUI/TestSuiteFilterProcessorTest.php | 29 | public function testRejectsTestIdFilterFileThatCannotBeRead(): void | CODE |
| LOW | tests/unit/TextUI/ShellExitCodeCalculatorTest.php | 42 | public function testFailsOnPhpunitNoticeWhenRequested(): void | CODE |
| LOW | tests/unit/TextUI/ShellExitCodeCalculatorTest.php | 53 | public function testDoesNotFailOnPhpunitNoticeWhenRequested(): void | CODE |
| LOW | tests/unit/TextUI/ShellExitCodeCalculatorTest.php | 67 | public function testSignalsExceededTimeLimitUsingDedicatedExitCode(): void | CODE |
| LOW | tests/unit/TextUI/ShellExitCodeCalculatorTest.php | 89 | private function testResultWithPhpunitNotice(): TestResult | CODE |
| LOW | tests/unit/TextUI/ShellExitCodeCalculatorTest.php | 148 | private function testResultWithExceededTimeLimit(): TestResult | CODE |
| LOW | tests/unit/TextUI/TestRunnerTest.php | 29 | public function testWrapsThrowableInRuntimeException(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 35 | public function testPHPConfigurationIsHandledCorrectly(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 62 | public function testHandlePHPConfigurationDoesNotOverwriteExistingEnvArrayVariables(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 75 | public function testHandlePHPConfigurationDoesNotOverwriteVariablesFromPutEnv(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 96 | public function testHandlePHPConfigurationDoesOverwriteVariablesFromPutEnvWhenForced(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 109 | public function testHandlePHPConfigurationDoesForceOverwrittenExistingEnvArrayVariables(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 119 | public function testIniSettingValueIsResolvedFromDefinedConstant(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 132 | public function testWarningIsTriggeredWhenIniSettingCannotBeSet(): void | CODE |
| LOW | tests/unit/TextUI/PhpHandlerTest.php | 156 | public function testEnvironmentVariableWithValueThatIsNotScalarIsIgnored(): void | CODE |
| LOW | tests/unit/TextUI/SourceFilterTest.php | 642 | public function testDeterminesWhetherFileIsIncluded(array $expectations, Source $source): void | CODE |
| LOW | tests/unit/TextUI/SourceMapperTest.php | 528 | public function testDeterminesWhetherFileIsIncluded(array $expected, Source $source): void | CODE |
| LOW | tests/unit/TextUI/SourceMapperTest.php | 539 | public function testDoesNotMapFilesInHiddenDirectories(): void | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 54 | public function testResolvesTokensToConfiguration(string $value, int $expectedOrder, int $expectedOrderDefects, bool | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 64 | public function testCollectsUnknownTokensInsteadOfIgnoringThem(): void | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 73 | public function testDefaultTokenResetsEveryKnob(): void | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 82 | public function testDeprecatesRenamedDurationToken(): void | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 90 | public function testDeprecatesRenamedSizeToken(): void | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 98 | public function testDeprecatesMoreThanOneOrder(): void | CODE |
| LOW⚡ | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 107 | public function testDeprecatesTheDependsTokenInFavorOfTheDedicatedOption(): void | CODE |
| LOW | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 121 | public function testDeprecatesTheNoDependsTokenInFavorOfTheDedicatedOption(): void | CODE |
| LOW | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 135 | public function testDeprecatesDefectsBeingWrittenBeforeTheOrder(): void | CODE |
| LOW | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 144 | public function testNeverSuggestsADeprecatedTokenAsTheReplacement(): void | CODE |
| LOW | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 164 | public function testDoesNotDeprecateDefectsBeingWrittenAfterTheOrder(): void | CODE |
| LOW | …unit/TextUI/Configuration/ExecutionOrderParserTest.php | 170 | public function testNamesTheConfigurationSurfaceTheValueCameFrom(): void | CODE |
| LOW⚡ | tests/unit/TextUI/Configuration/MergerTest.php | 350 | public function testIncludePathsAreCarriedOverFromXmlConfiguration(): void | CODE |
| LOW⚡ | tests/unit/TextUI/Configuration/MergerTest.php | 359 | public function testColorsCanBeEnabledFromXmlConfiguration(): void | CODE |
| LOW⚡ | tests/unit/TextUI/Configuration/MergerTest.php | 368 | public function testThresholdsForHtmlCodeCoverageReportAreResetWhenTheyAreInconsistent(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 33 | public function testNoLoggingShouldOnlyAffectXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 61 | public function testBranchCoverageCanBeEnabledFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 76 | public function testClassViewAndFileViewForHtmlCodeCoverageReportAreEnabledByDefault(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 88 | public function testClassViewForHtmlCodeCoverageReportCanBeDisabledFromXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 100 | public function testClassViewForHtmlCodeCoverageReportCanBeDisabledFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 114 | public function testFileViewForHtmlCodeCoverageReportCanBeDisabledFromXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 126 | public function testFileViewForHtmlCodeCoverageReportCanBeDisabledFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 140 | public function testCoverageTargetingCanBeDisabledFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 153 | public function testCoverageTargetingIsNotDisabledByDefault(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 164 | public function testCoverageDriverIsCarriedOverFromXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 176 | public function testNoCoverageShouldOnlyAffectXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 214 | public function testLoggingConfigurationIsCarriedOverFromXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 237 | public function testCodeCoverageReportsCanBeConfiguredFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 285 | public function testMiscellaneousOptionsCanBeConfiguredFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 311 | public function testTimeoutIsNotConfiguredByDefault(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 325 | public function testTimeoutCanBeConfiguredFromCli(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 336 | public function testInvalidRandomOrderSeedIsReplacedWithSmallestValidSeed(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 383 | public function testCustomCssFileForHtmlCodeCoverageReportIsCarriedOverFromXmlConfiguration(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 393 | public function testWarningIsTriggeredWhenIssueTriggerIdentificationIsDisabledButNeeded(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 415 | public function testTestRunHistoryFileIsLocatedNextToTheScriptThatIsRunning(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 427 | public function testTestRunHistoryFileIsLocatedInTheCurrentWorkingDirectoryWhenTheScriptThatIsRunningIsUnknown(): vo | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 486 | public function testFailOnDeprecationTriggerOptionsCanBeConfiguredUsingXmlConfigurationFile(): void | CODE |
| LOW | tests/unit/TextUI/Configuration/MergerTest.php | 510 | public function testFailOnDeprecationTriggerOptionsCanBeConfiguredUsingCommandLineOptions(): void | CODE |
| LOW | …sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php | 64 | public function testLoadsEveryTestFileWhenNoTestFileSkipperIsUsed(): void | CODE |
| LOW | …sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php | 75 | public function testDoesNotLoadATestFileThatCannotContributeATestToTheRun(): void | CODE |
| LOW | …sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php | 102 | public function testDoesNotLoadATestFileThatIsNamedOnTheCommandLineNextToAnotherOneAndCannotContributeATestToTheRun( | CODE |
| LOW | …sts/unit/TextUI/Configuration/TestSuiteBuilderTest.php | 130 | public function testLoadsATestFileThroughTheTestFileSkipperSoThatAFileThatCannotBeLoadedIsNotRemembered(): void | CODE |
| 3798 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/Metadata/MetadataCollectionTest.php | 21 | #[CoversClass(MetadataCollection::class)] | COMMENT |
| LOW | tests/unit/Metadata/MetadataCollectionTest.php | 41 | #[UsesClass(PostCondition::class)] | COMMENT |
| LOW | tests/unit/Metadata/Parser/AttributeParserTest.php | 81 | use PHPUnit\Framework\Attributes\UsesNamespace; | COMMENT |
| LOW | tests/unit/Metadata/Parser/AttributeParserTest.php | 101 | #[CoversClass(CoversFile::class)] | COMMENT |
| LOW | tests/unit/Metadata/Parser/AttributeParserTest.php | 121 | #[CoversClass(ExcludeStaticPropertyFromBackup::class)] | COMMENT |
| LOW | tests/unit/Metadata/Parser/AttributeParserTest.php | 141 | #[CoversClass(RunTestsInSeparateProcesses::class)] | COMMENT |
| LOW | tests/_files/IniSettingNotChangeableAtRuntimeTest.php | 21 | { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_files/code-coverage-driver/phpunit-with-fake-data.xml | 5 | cacheDirectory=".phpunit.cache.with-fake-data"> | CODE |