Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

Pest architecture

Changing src/Exceptions/ShouldNotHappen.php in Pest reaches 89 modules. 14 files call it directly. Snapshot 848c740.

The first file to open in Pest is src/Exceptions/ShouldNotHappen.php. A change there reaches 89 of 260 modules.

This lead file reaches 34% of the graph. The median published proof reaches 60%.

Exceptions/ShouldNotHappen.php89 · 14 fan-in
Support/Str.php77 · 9 fan-in
Support/NullClosure.php73 · 8 fan-in
src/TestSuite.php72 · 28 fan-in
…ories/TestCaseMethodFactory.php72 · 12 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: Pest · Score: 91.9/100 (Excellent architecture) · 260 modules · 441 edges · PHP · 5 of 21 · Language score median 86.9

Cycles
13
Duplicate authorities
0
God modules
7
Layer violations
0
arc impact src/Exceptions/ShouldNotHappen.php

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for Pest
[![ArcSight architecture proof for Pest](https://arcsight.ai/badge/proof/pest/)](https://arcsight.ai/repositories/pest/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

Pest · 848c740

RankFileFan-inBlastShare
1src/Exceptions/ShouldNotHappen.php

concentrates too many responsibilities, shared utility hub

148934%
2src/Support/Str.php

concentrates too many responsibilities, shared utility hub

97730%
3src/Support/NullClosure.php

concentrates too many responsibilities

87328%
4src/TestSuite.php287228%
5src/Factories/TestCaseMethodFactory.php127228%
All ranked files
RankFileFan-inBlastShare
6src/Contracts/TestCaseMethodFilter.php77228%
7src/Support/Reflection.php77228%

Circular dependencies

This snapshot records 13 dependency cycles.

Nearby proofs

Snapshot notes

In pestphp pest, a change that begins in Exceptions ShouldNotHappen.php keeps traveling until it reaches Support Str.php, with Support NullClosure.php as the third file on that walk and the src-Expectation.php group as the group around them, snapshot mark fddcaeedea.

TestSuite.php is worth opening beside Exceptions ShouldNotHappen.php because Factories TestCaseMethodFactory.php still participates when TestSuite.php moves, and Contracts TestCaseMethodFilter.php stays in view for pestphp pest, snapshot mark fddcaeedea.

Review Support Reflection.php only after Support Str.php and Exceptions ShouldNotHappen.php are both on the table, since the link from Support NullClosure.php back to TestSuite.php belongs to pestphp pest under snapshot mark fddcaeedea.

Support NullClosure.php and TestSuite.php are later stops, and a reviewer who has already seen Exceptions ShouldNotHappen.php should still look at Factories TestCaseMethodFactory.php before treating the src-Expectation.php group as understood for pestphp pest, snapshot mark fddcaeedea.

Contracts TestCaseMethodFilter.php closes the file list after Support Reflection.php and Exceptions ShouldNotHappen.php, which keeps the pestphp pest note tied to snapshot mark fddcaeedea, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • src-Expectation.php (19 modules)
  • PendingCalls-TestCall.php (6 modules)
  • Plugins-Tia.php (67 modules)
  • src-TestSuite.php (103 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in pestphp pest: Exceptions ShouldNotHappen.php?
Start with Exceptions ShouldNotHappen.php, because the rest of the pestphp pest walk leaves from that file and Support Str.php is the next file in the same review. Commit fddcaeedea records it.
What else is on the pestphp pest walk besides Exceptions ShouldNotHappen.php and Support NullClosure.php?
Support NullClosure.php and TestSuite.php stay on the walk with Factories TestCaseMethodFactory.php, which are different files from Exceptions ShouldNotHappen.php inside the src-Expectation.php group for pestphp pest. Commit fddcaeedea records it.
How should a reviewer use Contracts TestCaseMethodFilter.php in the pestphp pest snapshot?
Keep Contracts TestCaseMethodFilter.php, Support Reflection.php, and Exceptions ShouldNotHappen.php open together, then check Support Str.php before merging the pestphp pest change. Commit fddcaeedea records it.
Where does the pestphp pest review stop after Support NullClosure.php?
Stop after Support NullClosure.php, TestSuite.php, and Factories TestCaseMethodFactory.php have been compared with Exceptions ShouldNotHappen.php, leaving the src-Expectation.php group until those pestphp pest files are clear. Commit fddcaeedea records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/pest/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo