pestphp/pest
55.6
Adequate · 13 November 2026
23.3k
lines of production code
PHP
primary language
6
measurements over time
What this system is
Features
Add IgnorableTestCase base class
A new \IgnorableTestCase\ class has been added to the \Pest\\TestCases\ namespace, extending \PHPUnit\\Framework\\TestCase\. This class serves as a base for test cases that can be ignored, providing a structured way to handle test exclusion within the testing framework.
src/TestCases · high confidence
Added GitDirtyTestCaseFilter to run tests only for modified files
A new \GitDirtyTestCaseFilter\ class has been introduced in \src/TestCaseFilters\ to enable filtering test cases based on git status. When activated, this filter identifies PHP files that have been modified, added, or renamed in the current git working directory (excluding deleted files) and runs only the corresponding test cases. If no dirty tests are found, the system raises a \NoDirtyTestsFound\ exception. This feature relies on the \Git\ support class and requires git to be installed.
src/TestCaseFilters · high confidence
Added TIA integration hooks for Blade views and Inertia.js components
New integration classes have been added to automatically record source file paths for Laravel Blade views and Inertia.js component names during test runs. The Blade integration hooks into the view factory to link source files for all rendered views, while the Inertia integration listens for the RequestHandled event to extract and record component data from both JSON responses and HTML-rendered Inertia pages.
src/Plugins/Tia/Edges · high confidence
Added code coverage cache warming command and skipped test progress indicator
The TextUI now includes a new \WarmCodeCoverageCacheCommand\ that allows users to pre-warm the static analysis cache for code coverage, improving subsequent test run performance by avoiding redundant analysis. Additionally, the progress printer has been updated to visually indicate skipped tests marked with the \\_\TODO\\_\ message by printing a 'T' character, providing clearer feedback during test execution.
overrides/TextUI · high confidence
Added empty Any matcher class
A new stub class \Any\ has been added to the \Pest\\Matchers\ namespace. Currently, this class is empty and marked as internal, serving as a placeholder for future matcher functionality.
src/Matchers · high confidence
Added external snapshot testing support
Users can now write snapshot tests outside the standard tests directory using the \toMatchSnapshot\ assertion. The new \tests-external/Features/Expect/toMatchSnapshot.php\ file demonstrates that snapshots generated in external locations are correctly saved to the \tests/.pest/snapshots-external/\ directory, ensuring proper isolation and organization for external test suites.
tests-external/Features/Expect · high confidence
Adds PHPUnit event subscribers for configuration, test filtering, kernel dumps, and shard timing
This change introduces a new set of internal PHPUnit subscribers in the \src/Subscribers\ directory that hook into the test runner lifecycle. \EnsureConfigurationIsAvailable\ stores the PHPUnit configuration in the container for later access. \EnsureIgnorableTestCasesAreIgnored\ filters out 'No tests found in class' warnings to prevent noise in the output. \EnsureKernelDumpIsFlushed\ disables the kernel dump mechanism once the test runner starts. Finally, \EnsureShardTimingStarted\, \EnsureShardTimingFinished\, and \EnsureShardTimingsAreCollected\ work together to measure and store the execution duration of individual test classes, supporting time-based sharding capabilities.
src/Subscribers · high confidence
Adds custom architecture presets and refactors test execution internals
Users can now define custom architecture presets via the new \Custom\ preset class, allowing tailored code-quality rules. The test runner's filtering and sorting logic has been refactored: \TestSuiteFilterProcessor\ now explicitly injects an \EnsureTestCaseIsInitiatedFilter\ to guarantee proper test initialization, and \TestSuiteSorter\ has been updated to work with the new \ReorderPipeline\ and \Context\ abstractions. Additionally, a new \ProgressPrinterOutput\ wrapper for ParaTest ensures that progress indicators are correctly routed to the progress printer while other output goes to the main printer, and the \Thanks\ command now includes social media links for the project maintainer.
pestphp/pest · high confidence
Adds new UI components for badges and detail layouts
Introduces three new Blade view components in the resources/views/components directory: a badge component that displays colored labels (blue for INFO, red for ERROR, yellow for WARN, green for SUCCESS) alongside content, a two-column detail component for rendering left/right key-value pairs with a dotted separator, and a new-line component for spacing.
resources/views/components · high confidence
Initial TeamCity logging subscriber implementation
Added a new set of subscriber classes in the \src/Logging/TeamCity/Subscriber\ directory to enable TeamCity-compatible test reporting. These files implement PHPUnit event subscribers (such as \TestFailedSubscriber\, \TestErroredSubscriber\, \TestSkippedSubscriber\, and others) that listen for specific test lifecycle events and forward them to the \TeamCityLogger\. This allows test execution results to be streamed to TeamCity build agents in a format they can parse and display.
src/Logging/TeamCity/Subscriber · high confidence
Initial TeamCity logging support for Pest
Added a new TeamCity logger (\TeamCityLogger\) that integrates with PHPUnit's event system to emit TeamCity-specific service messages. This enables CI/CD platforms like TeamCity to parse and display test results, including test suite start/finish events, individual test statuses (passed, failed, skipped, risky), and detailed failure information such as exception messages and comparison failures.
src/Logging/TeamCity · high confidence
Introduce TIA contract interfaces for CI, state, and lockfile management
Added a set of internal interfaces in the TIA plugin contracts to define the structure for CI integration, state persistence, and lockfile handling. The new \Ci\ interface standardizes how the current and default branches are detected, with concrete implementations provided for GitHub (reading from environment variables and event payloads) and GitLab (reading from environment variables). The \State\ interface defines methods for reading, writing, and deleting key-value state, while the \Lockfile\ interface specifies how to determine if a filename applies and how to generate a content fingerprint. Additionally, the \WatchDefault\ interface outlines how to determine applicable watch modes and retrieve default test directories based on project structure.
src/Plugins/Tia/Contracts · high confidence
Introduces Describable trait for managing test descriptions
Adds the Describable trait to the PendingCalls/Concerns namespace, providing a structured way to track test descriptions via the $\_\_describing and describing arrays. This enables the framework to associate pending test calls with specific descriptive contexts, supporting improved logic around test hooks and descriptions as indicated by the commit history.
src/PendingCalls/Concerns · high confidence
Introduces Test Impact Analysis (TIA) plugin with baseline synchronization and dependency graphing
Adds the \src/Plugins/Tia\ directory containing the core components for Pest's Test Impact Analysis feature. This includes \BaselineSync\ for fetching and caching test baselines from GitLab and GitHub CI, \Graph\ and \JsModuleGraph\ for building and querying the dependency graph between tests and source files (including Blade, Inertia, and migrations), and \Recorder\/\CoverageMerger\ for capturing and merging code coverage data. The plugin also provides \Configuration\ for setting watch patterns and storage directories, and \Storage\ for managing local cache state.
src/Plugins/Tia · high confidence
Introduces argument-handling trait for plugin commands
Adds the HandleArguments trait to src/Plugins/Concerns, providing utility methods (hasArgument, pushArgument, popArgument, popArgumentValue) for managing CLI arguments in plugins. This enables plugins to inspect, add, and remove command-line arguments, including handling key-value pairs and duplicate entries, which supports features like --parallel and --exclude-group.
src/Plugins/Concerns · high confidence
Introduces built-in architectural presets for enforcing code standards
Adds a new \src/ArchPresets\ module providing pre-configured sets of architectural expectations. This includes a \Laravel\ preset that enforces conventions such as suffixes for controllers, requests, and commands, ensures proper inheritance from framework classes, and restricts the use of debugging functions like \dd\ and \dump\. It also provides \Strict\ and \Relaxed\ presets to enforce or relax coding standards like strict types and class finality across user namespaces, a \Security\ preset to ban dangerous functions (e.g., \eval\, \md5\), a \Php\ preset to ban debugging and deprecated functions, and a \Custom\ preset to allow user-defined rules.
src/ArchPresets · high confidence
Introduces internal support utilities and refactors higher-order testing infrastructure
This change adds a suite of new internal support classes to src/Support, including Arr, Ci, Closure, Container, Coverage, DatasetInfo, Description, ExpectationPipeline, Exporter, Git, HigherOrderCallables, HigherOrderTapProxy, Shell, StateGenerator, and View, to provide foundational helpers for array manipulation, CI detection, dependency injection, code coverage reporting, dataset scoping, and shell integration. It simultaneously refactors the higher-order testing mechanism by updating Backtrace to use a robust backtrace filtering method, modifying HigherOrderMessage to support conditional execution and callable expectations, and enhancing Reflection to handle \_\_call magic methods and bind callables with test data, thereby improving the reliability and flexibility of higher-order test chains.
src/Support · high confidence
Introduction of Expectation mixin class with comprehensive assertion methods
The \src/Mixins/Expectation.php\ file introduces a new \Expectation\ mixin class that provides a wide range of assertion methods for testing values. This includes basic checks like \toBe\, \toBeEmpty\, \toBeTrue\, \toBeFalse\, and their truthy/falsy variants. It also adds comparison methods such as \toBeGreaterThan\, \toBeLessThan\, and their 'or equal' counterparts, which now support \DateTimeInterface\ in addition to numeric types. The class introduces collection-like assertions including \toContain\ (for strict containment) and \toContainEqual\ (for value equality), as well as string-specific methods like \toStartWith\. This mixin extends the testing capabilities by allowing these expectations to be mixed into the main \Pest\\Expectation\ class, enabling fluent, chainable assertions in tests.
src/Mixins · high confidence
New WritesToConsole trait for structured test output
A new WritesToConsole trait has been added to the Logging concerns, providing helper methods to write success, error, and warning messages to the console with specific colors and symbols. This enables consistent, styled output for test results directly from the logging subsystem.
src/Concerns/Logging · high confidence
New compact parallel test output printer
A new CompactPrinter class has been added to the parallel support plugin to provide a condensed, symbol-based view of test progress during parallel execution. This printer displays colored icons for different test outcomes (such as success, failure, or deprecation) in a compact format, and includes a recap section that summarizes parallel process usage and test results at the end of the run.
src/Plugins/Parallel/Support · high confidence
New configuration classes for presets, printing, and project integrations
The \src/Configuration\ directory now includes three new classes: \Presets\ (exposing a \custom\ method to register preset closures), \Printer\ (providing a \compact\ method to toggle compact output via the Collision adapter), and \Project\ (a singleton managing URL patterns for GitHub, GitLab, Bitbucket, Jira, and custom integrations for issues, pull requests, and assignees).
src/Configuration · high confidence
New default test run history implementation
A new \DefaultTestRunHistory\ class has been added to the \PHPUnit\\Runner\\TestRunHistory\ namespace. This class implements the \TestRunHistory\ interface and manages the persistence of test execution data, including defect statuses and execution times, to a cache file (defaulting to \.phpunit.result.cache\). It handles loading, saving, merging, and pruning of this history data, supporting both standard persistence and a prune mode that removes unchanged entries.
overrides/Runner/TestRunHistory · high confidence
New higher-order expectation classes for chained assertions
Added \EachExpectation\ and \HigherOrderExpectation\ classes to \src/Expectations\ to support chaining expectations on collections and nested values. \EachExpectation\ allows applying assertions to every item in an iterable, while \HigherOrderExpectation\ enables fluent chaining (e.g., \-\>json()\, \-\>scoped()\) and property/method access on expectation results, enhancing the test API's composability.
src/Expectations · high confidence
New parallel execution handlers for Laravel, Pest, and general parallel runs
Added three new argument-handling classes in the Parallel plugin to configure test execution modes: the Laravel handler detects Laravel applications and configures the \Illuminate\\Testing\\ParallelRunner\ with appropriate environment variables; the Parallel handler strips legacy parallel flags and sets the runner to \WrapperRunner\; and the Pest handler sets the \PEST\_PARALLEL\ server variable for worker processes.
src/Plugins/Parallel/Handlers · high confidence
New plugin lifecycle interfaces introduced
The plugin system now exposes five new contract interfaces—AddsOutput, Bootable, HandlesArguments, HandlesOriginalArguments, and Terminable—that define the specific lifecycle hooks plugins can implement to interact with the runner's output, boot process, argument handling, and termination phases.
src/Contracts/Plugins · high confidence
Pest 5.2.1 introduces a new Kernel architecture and global helper functions
This release upgrades Pest to version 5.2.1 and introduces a new \Kernel\ class that manages the bootstrapping process, plugin lifecycle, and error handling. The global test functions (\test\, \expect\, \describe\, \beforeEach\, etc.) have been moved from \globals.php\ to \Functions.php\ and now utilize a new \Configuration\ class for project settings. The \TestSuite\ has been refactored to include a \SnapshotRepository\ and improved test description handling, while the legacy \Datasets\ class has been removed in favor of the new \DatasetsRepository\. Additionally, a new \Preset\ system allows users to apply architectural constraints via built-in presets like \php\, \laravel\, \strict\, and \security\.
src · high confidence
Pest binary adds test filtering and parallel worker support
The \bin/pest\ entry point now supports several new CLI flags that filter which tests are executed: \--dirty\ (runs only tests related to changed files via Git), \--todo\/\--todos\, \--flaky\, \--notes\, \--assignee\, \--issue\/\--ticket\, and \--pr\/\--pull-request\. It also introduces \--compact\ and \--profile\ for Collision printer output, and \--teamcity\ for CI integration. The binary now correctly resolves the project root based on the autoload path rather than \getcwd()\, and supports a configurable \--test-directory\. Additionally, a new \bin/worker.php\ file enables parallel test execution via ParaTest wrapper workers, and \bin/pest-tia-vite-deps.mjs\ provides Vite/rolldown alias resolution for frontend test integration.
bin · high confidence
Pest v5 release with simplified agent instructions and modernized tooling
This release introduces v5 of the Pest testing framework, featuring new documentation files (AGENTS.md, CLAUDE.md) that provide strict instructions for coding agents to follow ASD-STE100 Simplified Technical English. The project has migrated from PHP-CS-Fixer to Laravel Pint for code formatting, replacing the .php\_cs file with pint.json. Static analysis has been upgraded to PHPStan level 7, supported by new extension configuration files (phpstan-pest-extension.neon) and a baseline file. The PHPUnit configuration has been updated to version 10.0 schema, enabling stricter test behaviors like failing on risky tests and warnings, and adding support for external test directories. Additionally, a Makefile and Docker setup have been added to simplify local development and testing.
(repo-wide) · high confidence
Test output now displays assignees, issues, and PRs in test descriptions
The test runner now enriches test descriptions in the console output with contextual metadata. When test context includes assignees, issues, or pull requests, these are rendered as clickable links (using configured base URLs) appended to the test name. Additionally, any associated notes are displayed below the test result. This provides immediate visibility into who is responsible for a test and which related tickets or PRs it addresses, directly within the test output.
src/Collision · high confidence
Removals
Removal of Laravel-specific Pest console commands
The \pest:dataset\, \pest:install\, and \pest:test\ Artisan commands have been removed from the \src/Laravel/Commands\ directory. These commands previously allowed users to generate dataset files, install Pest configuration stubs, and create new test files directly within Laravel applications; their removal means these code-generation capabilities are no longer available in this package location.
src/Laravel/Commands · high confidence
Removed PHP script for compiling PHPUnit assertion functions
The \scripts/compile.php\ file has been deleted. This script previously processed the PHPUnit \Functions.php\ source to generate a standalone \compiled/globals.php\ file by modifying namespaces and removing unused imports. Its removal eliminates the ability to generate this specific compiled assertion helper file.
scripts · high confidence
Behavioural changes
6 commits (2 fixes) modifying .hod
A change to existing behaviour in .hod — 6 commits (2 fixs), 3 files: “chore: bumps”; “fix: support with paratest”; “fix: snapshot key on retry / repeat”; and 3 more.
.hod · medium confidence · unverified
Adds dedicated views for CLI usage and version output
The application now uses dedicated Blade templates to render command-line help and version information. A new \usage.php\ view formats the usage string (e.g., \pest \<file\> \[options\]\) with specific styling, while a new \version.php\ view displays the Pest Testing Framework version number. This change separates the presentation logic for these two distinct CLI outputs from the main application flow.
resources/views · high confidence
Improved error messages and new validation exceptions
The exception handling in src/Exceptions has been refined to provide clearer, more actionable feedback for common configuration and usage errors. Several existing exception classes were renamed and their messages updated to use consistent bracketed syntax for keywords (e.g., \[describe\], \[beforeAll\]), such as renaming BeforeEachAlreadyExist to AfterAllWithinDescribe and InvalidConsoleArgument to InvalidOption. New exceptions were added to catch specific dataset issues: DatasetArgumentsMismatch for argument count mismatches, DatasetMissing when arguments are expected but no dataset is provided, and DatasetProviderError to surface provider failures. Additionally, new exceptions enforce structural rules: AfterBeforeTestFunction ensures \[after\] hooks are chained correctly within \[describe\] blocks, and TiaRequiresCommit, TiaRequiresDefaultBranch, and TiaRequiresRemote provide detailed guidance when the TIA (Test Impact Analysis) mode is misconfigured. The TestDescriptionMissing exception now explicitly requires every test to have a description, and InvalidTestClassName prevents invalid PHP class names or namespaces from being generated by test files.
src/Exceptions · high confidence
Improved exception trace reporting for Collision-renderable errors
The test runner now includes the specific file and line number of the source of an exception in the reported trace when that exception implements the Collision editor interface. This ensures that error output for such exceptions is more precise and easier to debug by highlighting the exact location where the error originated.
overrides/Event · high confidence
Installer now guides users to install Pest Plugin Browser and Playwright
The installer UI now displays a specific instruction panel when the \visit()\ function is used, informing users that the Pest Plugin Browser is required. It provides clear, copy-pasteable commands to install the \pestphp/pest-plugin-browser:^5.0\ package via Composer and set up Playwright via npm, ensuring users can resolve missing dependencies for browser-based testing features.
resources/views/installers · high confidence
Introduce PCOV and Xdebug restarter classes for TIA integration
Added \PcovRestarter\ and \XdebugRestarter\ classes in \src/Restarters\ to handle process restarts when using the TIA (Tracing Instrumentation Architecture) feature. The \PcovRestarter\ ensures the \pcov.directory\ INI setting matches the project root before running, preventing memory exhaustion issues during TIA graph generation. The \XdebugRestarter\ leverages \Composer//XdebugHandler\ to restart the process if Xdebug is loaded in coverage-only mode and TIA is enabled, ensuring consistent execution context for mutation testing and coverage analysis.
src/Restarters · high confidence
Introduces dedicated classes for tracking covered classes and functions
Added \CoversClass\ and \CoversFunction\ classes to the \Pest\\Factories\\Covers\ namespace. These new internal types provide structured containers for storing the names of covered classes and functions, replacing the previous approach of using simple strings or annotations directly in factory definitions. This change supports the broader shift to always use attributes instead of annotations for cover declarations.
src/Factories/Covers · high confidence
Introduces modular bootstrappers for test environment initialization
The test runner's initialization process is now structured into dedicated bootstrapper classes to improve maintainability and separation of concerns. The new \BootExcludeList\ class explicitly registers specific directories (bin, overrides, resources, src, stubs) to be excluded from test discovery. \BootFiles\ handles the loading of the test directory structure, including Expectations, Helpers, and Pest.php, while also introducing support for loading dataset files via the new \DatasetInfo\ support class. \BootOverrides\ ensures that specific PHPUnit internal classes are replaced with custom implementations located in the overrides directory. Finally, \BootPhpUnitConfiguration\ centralizes the building of the PHPUnit text UI configuration. These changes collectively define how the testing environment is prepared before tests are executed.
src/Bootstrappers · high confidence
Introduces snapshot testing and refactors hook and dataset repositories
This change adds new internal repositories for snapshot testing (Snapshot, SnapshotRepository) and scoped datasets (DatasetsRepository), enabling users to assert against persisted file outputs and use datasets scoped to specific file paths. It also refactors the BeforeEach and AfterEach repositories to support chaining multiple hooks per test file instead of throwing exceptions on duplicates, and updates the TestRepository to use a new filter-based architecture for test case selection.
src/Repositories · high confidence
Introduction of internal contract interfaces and refactoring of HasPrintableTestCaseName
This change introduces several new internal contract interfaces in the src/Contracts directory to define specific behaviors and filters for the testing framework, including ArchPreset, Bootstrapper, Panicable, Restarter, TestCaseFilter, and TestCaseMethodFilter. Additionally, the existing HasPrintableTestCaseName interface has been refactored to directly extend the base interface from the NunoMaduro\\Collision library, removing previous conditional logic that checked for the interface's existence.
src/Contracts · high confidence
Override PHPUnit JUnit XML Logger with Pest integration
The JUnit XML logging output for test suites has been replaced with a custom implementation that integrates with the Pest testing framework. This change modifies how test results are aggregated and reported in XML format, leveraging Pest's internal converter and test suite context to provide more accurate or framework-specific metadata in the generated logs.
overrides/Logging · high confidence
Overrides PHPUnit runner components for custom test loading and history management
The \overrides/Runner\ directory now contains custom implementations of PHPUnit's core runner classes: \TestSuiteLoader\, \TestSuiteSorter\, and \DefaultTestRunHistory\. The new \TestSuiteLoader\ modifies how test classes are discovered and loaded, specifically handling integration with Pest's test case structures and preventing duplicate test loading. \DefaultTestRunHistory\ introduces a file-based caching mechanism (\.phpunit.result.cache\) to persist test status and execution times, enabling features like running failed tests first. \TestSuiteSorter\ is overridden to support reordering tests based on duration, size, and defect history, integrating with the new history system to prioritize unstable or slow tests.
overrides/Runner · high confidence
Plugins restructured into a dedicated directory with new CLI capabilities
The plugin system has been reorganized into the \src/Plugins\ directory, replacing the previous \src/Actions\ structure. This change introduces several new command-line options: \--bail\ to stop on the first failure, \--memory\ to display memory usage, \--profile\ to profile tests (not supported in parallel), \--only-covered\ to filter coverage output, and \--update-snapshots\ for snapshot management. The \--retry\ option now enforces defect-based ordering and stops on failure, while \--parallel\ is now explicitly incompatible with \--retry\, \--profile\, and several other flags. Additionally, the \--process-isolation\ option is now blocked, and a default PHPUnit configuration is automatically generated if none is provided.
src/Plugins · high confidence
Refactored test lifecycle hooks and describe blocks into dedicated PendingCall classes
The internal implementation of test lifecycle hooks (beforeEach, afterEach) and describe blocks has been restructured into dedicated classes (BeforeEachCall, AfterEachCall, DescribeCall) within the PendingCalls directory. This change introduces a new scoping mechanism where hooks are now strictly bound to their containing describe block context, ensuring that beforeEach and afterEach functions are executed only for tests within the matching describe scope and preventing interference between nested or similarly named describe blocks. Additionally, the BeforeEachCall class now supports chaining test-call methods (like \with\ or \group\) alongside test-case hooks, allowing for more granular configuration of setup logic relative to specific test definitions.
src/PendingCalls · high confidence
Refactors test case generation to use dedicated method factories and PHP 8 attributes
The test generation logic in src/Factories has been restructured to separate test case definitions from individual test methods. A new TestCaseMethodFactory class now handles the creation of specific test methods, including their closures, descriptions, and attributes, while the TestCaseFactory manages the overall test class structure and delegates method evaluation to the new factory. This change introduces a new Attribute class to represent PHP 8 attributes, replacing previous annotation-based or string-based attribute handling. The refactoring improves type safety and aligns the codebase with modern PHP standards, specifically supporting PHP 8 features and PHPUnit 9.3+ attribute syntax. Users will benefit from more robust test generation, better handling of datasets and dependencies, and improved compatibility with newer PHP and PHPUnit versions.
src/Factories · high confidence
Refactors test execution internals and introduces expectation extension API
The test case execution logic in src/Concerns has been restructured: the previous TestCase trait is removed and replaced by a new Testable trait that manages hooks (beforeAll, afterAll, beforeEach, afterEach) and test execution, alongside new traits for expectations (Expectable), extension registration (Extendable), and pipeline/interception (Pipeable). This introduces a new expect() helper and an extend() mechanism for adding custom expectation methods, while the pipe/intercept system allows modifying or intercepting expectation values. The Attributes evaluator is also added to generate PHP attribute code for test definitions.
src/Concerns · high confidence
Removal of Laravel Pest Service Provider
The \PestServiceProvider\ class has been removed from the Laravel integration. This means the automatic registration of the \PestInstallCommand\, \PestTestCommand\, and \PestDatasetCommand\ artisan commands via the service provider is no longer performed by this file, likely shifting command registration responsibilities elsewhere or requiring manual configuration.
src/Laravel · high confidence
Removal of PHPUnit assertion functions from compiled globals
The \compiled/globals.php\ file, which previously provided global wrapper functions for PHPUnit assertions (such as \assertArrayHasKey\, \assertEquals\, and \assertContains\), has been deleted. This change removes the availability of these convenience functions, meaning tests can no longer rely on these global helpers and must use the \Assert\ class methods directly.
compiled · high confidence
Removal of legacy PendingObjects classes
The \AfterEachCall\, \BeforeEachCall\, \TestCall\, and \UsesCall\ classes in \src/PendingObjects\ have been removed. This change eliminates the previous pending-object pattern used for chaining test definitions and lifecycle hooks, indicating a shift in how the framework handles test construction and hook registration internally.
src/PendingObjects · high confidence
Removes internal action classes for test loading and validation
The internal action classes in src/Actions (AddsCoverage, AddsTests, LoadStructure, ValidatesConfiguration, ValidatesEnvironment) have been deleted. This removes the specific logic previously used to parse coverage options, group test cases into suites, load the Pest structure (Pest.php, Datasets), validate PHPUnit configuration, and check for required environment files like composer.json and the tests directory.
src/Actions · high confidence
Removes legacy Console Command and Coverage classes
The \src/Console/Command.php\ and \src/Console/Coverage.php\ files have been deleted. This removes the previous implementation of the console command entry point and the dedicated code coverage reporting logic, indicating a structural shift in how the console interface and coverage output are handled within the application.
src/Console · high confidence
Replaces ParaTest runner with custom parallel execution and output handling
The parallel testing engine in \src/Plugins/Parallel/Paratest\ has been replaced with a custom implementation consisting of \WrapperRunner\, \ResultPrinter\, and \CleanConsoleOutput\. This change introduces a new \WrapperRunner\ that manages worker processes, handles specific environment configurations like Laravel Herd, and coordinates test execution. A new \ResultPrinter\ replaces the default ParaTest printer to provide custom parallel output, including support for TeamCity logs, testdox, and compact progress reporting, while \CleanConsoleOutput\ filters out specific PHPUnit banner messages from the console output.
src/Plugins/Parallel/Paratest · high confidence
Updated Laravel scaffolding to use Pest for testing
The Laravel application stubs have been updated to include Pest as the default testing framework. New stub files for \Pest.php\, \TestCase.php\, and example tests in \Feature\ and \Unit\ directories are now provided, replacing the previous PHPUnit-only setup. The \phpunit.xml\ configuration has also been updated to align with this change, ensuring that the \init\ command generates a project structure ready for Pest-based testing out of the box.
stubs/init-laravel · high confidence
Updated test scaffolding to use Pest and PHPUnit 10.3
The \init\ command now generates test stubs based on Pest instead of raw PHPUnit. This includes new \Pest.php\ and \ExampleTest.php\ files utilizing Pest's \test()\ and \expect()\ syntax, a simplified \TestCase.php\, and a \phpunit.xml\ configuration updated to reference the PHPUnit 10.3 schema. Users initializing a new project will now have a Pest-ready testing environment by default.
stubs/init · high confidence
Updated test stubs to use Pest assertions and Dusk template
The default test stubs have been updated to align with modern testing practices. The Unit test stub now uses Pest's \expect(...)-\>toBeTrue()\ syntax instead of the legacy \assertTrue()\ helper. Additionally, a new Browser stub has been introduced to provide a template for Laravel Dusk browser tests, while the previous phpunit.xml configuration file has been removed, indicating a shift away from standard PHPUnit configuration in favor of Pest's conventions.
stubs · high confidence
Fixes
Ensures test cases are initialized before execution
A new filter in the test runner ensures that test cases implementing the HasPrintableTestCaseName contract are initialized via \_\_initializeTestCase() before being accepted for execution, addressing issues with filtering tests.
src/Runner · high confidence
Test coverage
2 commits adding/updating tests in tests/Unit/Restarters; Added comprehensive test coverage for new test runner features; Added feature tests for TIA branch baselines and CI integration; Added snapshot for collision test fixture; Added snapshot test coverage for Expect and Flaky features; Added snapshot test for help command output; Added snapshot tests for Expect toMatchSnapshot with datasets; Added snapshot tests for Todo and CustomTestCase features; Added test fixture for ToHavePublicMethodsBesides; Added test fixtures for TIA baseline integration; Added test fixtures for TIA overlay configurations; Added test fixtures for ToHaveAttribute expectations; Added test fixtures for ToHaveMethod architectural expectation; Added test fixtures for ToHavePrefix and ToHaveSuffix assertions; Added test fixtures for backed enum expectations; Added test fixtures for casing validation; Added test fixtures for class inheritance scenarios; Added test fixtures for code coverage analysis; Added test fixtures for constructor and destructor architecture checks; Added test fixtures for inherited and nested trait detection; Added test fixtures for invokable class detection; Added test fixtures for parallel nested dataset reporting; Added test fixtures for strict equality architecture rules; Added test fixtures for strict types enforcement; Added test fixtures for suite behavior validation; Added test for console help output and removed coverage test; Added test results cache for Pest framework; Added tests for Higher Order Expectations on methods and properties; Added tests for OppositeExpectation error message handling; Added tests for code coverage metadata attributes; Added tests for custom affixes and trait application; Added tests for global and nested hook execution order; Added tests for non-standard test file naming conventions; Added tests for plugin coverage calculation and global uses registration; Added tests for scoped dataset resolution in Pest; Added unit test for Collision editor integration in stack traces; Added unit tests for Environment, Retry, and Shard plugins; Added unit tests for Pest support utilities; Added unit tests for configuration helpers; Added unit tests for dataset descriptions, presets, test naming, and test suite validation; Added unit tests for the HandleArguments plugin concern; Added unit tests for the TIA plugin internals; Adds internal test suite for architecture, hooks, and environment validation; Expanded test coverage for Expectation API; Expanded visual snapshot tests for CLI output and parallel execution; Refactors PHPUnit test infrastructure; Removed unit tests for Actions module; Updated PHPUnit test files to use the expectation API and strict typing; Updated help command snapshot for Pest 5.2.1; Updated test snapshots for new features and fixes; Updated test suite to use PHPUnit attributes and Pest configuration; Updated test suite to use Pest expectation API.
Dependencies
Pest 5.x major upgrade: PHP 8.4, PHPUnit 13, and plugin-based architecture
This release upgrades the framework to require PHP 8.4 and PHPUnit 13.3.4, replacing the previous Collision dependency with Collision 8.9.5 and Termwind 2.4.0. The architecture shifts to a plugin-based model, explicitly registering plugins like Mutate, Coverage, and Parallel in the composer configuration, and introduces new dev tools (Pest Dev Tools, Browser, Type Coverage) while removing legacy Laravel service provider wiring.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 54 → 56 (+1.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 52 → 52 (-0.7)
- Architecture 83 → 95 (+12.3)
- Maturity 49 → 55 (+6.1)
- Readiness 53 → 52 (-1.7)
- Security 94 → 95 (+0.5)
- Performance 60 → 60 (+0.0)
Resolved (12)
- Documentation: no installation or build instructions (README.md)
- Documentation: no project overview (README.md)
- Duplicated block (13 lines × 2) (src/ArchPresets/Laravel.php)
- Duplicated block (17 lines × 3) (src/Expectations/OppositeExpectation.php)
- Duplicated block (6 lines × 2) (src/Expectation.php)
- High IaC: DS-0002 (docker/Dockerfile)
- High IaC: DS-0025 (docker/Dockerfile)
- Hotspot: src/Mixins/Expectation.php (src/Mixins/Expectation.php)
- Medium IaC: WD-DOCKER-0003 (docker/Dockerfile)
- No ADRs found
- Off-boarding risk: anonymized user #1
- Projects may be oversized for their cohesion
New (41)
- Edited copies of one member (3 members, 15+ corresponding lines) (src/Plugins/Tia/Fingerprint.php)
- Edited copies of one member (3 members, 29+ corresponding lines) (src/Expectations/OppositeExpectation.php)
- Edited copies of one member (3 members, 6+ corresponding lines) (src/Expectation.php)
- Edited copies of one member (3 members, 8+ corresponding lines) (src/Expectations/OppositeExpectation.php)
- Edited copies of one member (4 members, 12+ corresponding lines) (src/Expectation.php)
- Edited copies of one member (4 members, 15+ corresponding lines) (src/Expectation.php)
- Edited copies of one member (4 members, 6+ corresponding lines) (src/Expectation.php)
- Edited copies of one member (4 members, 8+ corresponding lines) (src/Expectation.php)
- Edited copies of one member (6 members, 8+ corresponding lines) (src/Expectations/OppositeExpectation.php)
- Edited copy of a member (11 corresponding lines) (src/Expectations/OppositeExpectation.php)
- Edited copy of a member (12 corresponding lines) (src/Mixins/Expectation.php)
- Edited copy of a member (13 corresponding lines) (src/Plugins/Tia/Fingerprint.php)
- Edited copy of a member (13 corresponding lines) (src/Plugins/Tia/WatchDefaults/Browser.php)
- Edited copy of a member (15 corresponding lines) (src/Support/Arr.php)
- Edited copy of a member (16 corresponding lines) (src/PendingCalls/TestCall.php)
- Edited copy of a member (16 corresponding lines) (src/Plugins/Tia/TestPaths.php)
- Edited copy of a member (17 corresponding lines) (src/PendingCalls/TestCall.php)
- Edited copy of a member (17 corresponding lines) (src/Plugins/Tia/Baselines/BaseRemote.php)
- Edited copy of a member (17 corresponding lines) (src/Support/Reflection.php)
- Edited copy of a member (19 corresponding lines) (src/Support/Backtrace.php)
- …and 21 more
Changes since last survey
- 42 commits — 14 feature/other, 28 fixes
By area
- src/Plugins — 20 commits
- (root) — 6 commits
- tests/.pest — 2 commits
- tests/.snapshots — 2 commits
- tests/Features — 2 commits
- tests/Fixtures — 2 commits
- .claude/agents — 1 commit
- .github/workflows — 1 commit
- src/Bootstrappers — 1 commit
- src/Exceptions — 1 commit
- src/Expectations — 1 commit
- src/Mixins — 1 commit
- src/Restarters — 1 commit
- src/Support — 1 commit
Notable commits
- fix: Fix TIA fingerprinting inside linked git worktrees (#1813)
- fix: chore: fix types
- fix: fix(sharding): strip --runner from the --list-tests sub-process (#2004)
- fix: fix(tia): detect renames in both porcelain status columns (#2017)
- fix: fix(tia): do not stamp a commit that lands during the run as the baseline (#1925)
- fix: fix(tia): drop cached coverage of tests that no longer exist (#2000)
- fix: fix(tia): drop coverage lines the current file no longer has (#2001)
- fix: fix(tia): drop the coverage cache on structural drift (#1996)
- fix: fix(tia): drop the results of every branch on environment drift (#2011)
- fix: fix(tia): find GitLab baselines beyond the last 100 jobs (#1912)
- fix: fix(tia): keep a failure when the same test is also risky (#2014)
- fix: fix(tia): keep pcov.enabled when the pcov restarter re-runs pest (#2015)
- fix: fix(tia): let JS modules no Inertia page imports fall back to the watch patterns (#1936)
- fix: fix(tia): list the whole suite with --list-tests (#1973)
- fix: fix(tia): match test files under wildcard suite directories (#1980)
- fix: fix(tia): preserve numeric table dependencies across graph round trips (#1990)
- fix: fix(tia): record new dependencies of known tests on coverage runs (#1955)
- fix: fix(tia): report git errors instead of a missing dependency (#1987)
- fix: fix(tia): skip locally() when the process is on CI (#1999)
- fix: fix(tia): stop a replay when the baseline commit cannot be reached (#1951)
- …and 22 more
Architecture
- Unchanged — 0 containers · 1 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
pestphp/pest was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 207a54254778c39dd8932b01926ffa463a7983e1 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.64+preprod-569132d3dfbe.