---
title: "pestphp/pest v5.3.6 Breaking Changes on Packagist"
description: "What each pestphp/pest release removed, renamed or changed: 23 breaking changes in 4 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/pestphp/pest
last_updated: 2026-12-04
---

# pestphp/pest breaking changes

pestphp/pest v5.3.6 (November 14, 2026) is its newest release with breaking changes. The first: Behavior changed toUse. Every breaking API change we have recorded in pestphp/pest on Packagist: 23 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v5.3.7`, released November 16, 2026. MIT license. [Source repository](https://github.com/pestphp/pest)

Its v3.0.0 release requires PHP 8.2.0 or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v4.0.0](#v-v4-0-0) to [v5.3.6](#v-v5-3-6): 1 breaking change in 1 version.
- From [v2.0.1](#v-v2-0-1) to [v5.3.6](#v-v5-3-6): 12 breaking changes in 3 versions.

## pestphp/pest v5.3.6 breaking changes

pestphp/pest v5.3.6, released November 14, 2026: 1 breaking change.

- **Behavior changed** `toUse`  

A negated toUse assertion with several targets now checks each target. Tests that relied on the earlier looser check may now fail and need review. [github.com](https://github.com/pestphp/pest/releases/tag/v5.3.6)

## pestphp/pest v4.0.0 breaking changes

pestphp/pest v4.0.0, released August 20, 2025: 1 breaking change.

- **Signature changed** `Pest\Expectation::__call`  

Was public function \_\_call(string $method, array $parameters): Expectation|HigherOrderExpectation|PendingArchExpectation; now public function \_\_call(string $method, array $parameters)... [packagist.org](https://packagist.org/packages/pestphp/pest#v4.0.0)

## pestphp/pest v3.0.0 breaking changes

pestphp/pest v3.0.0, released September 9, 2024: 10 breaking changes.

- **Removed**  

Pest 3 requires PHP 8.2.0 or greater, so projects on older PHP must upgrade PHP before moving to Pest 3. [pestphp.com](https://pestphp.com/docs/upgrade-guide)
- **Removed** `Pest\Factories\Annotations\TestDox`  

Pest\\Factories\\Annotations\\TestDox was removed in pestphp/pest v3.0.0 [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Removed** `tap`  

The tap() method, deprecated in Pest 2, is removed in Pest 3. Use defer() instead. [pestphp.com](https://pestphp.com/docs/upgrade-guide)
- **Renamed** `Pest\Exceptions\DatasetArgsCountMismatch`  

Use Pest\\Exceptions\\DatasetArgumentsMismatch instead. [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Signature changed** `Pest\Expectation::toBeUsed`  

Was public function toBeUsed(): never; now public function toBeUsed(): void. [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Signature changed** `Pest\Expectation::toHaveMethod`  

The toHaveMethod expectation was replaced by an architectural expectation that expects a namespace or class name. Pass $object::class instead of the object. [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Signature changed** `Pest\Panic`  

Was final class Panic; now final readonly class Panic. [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Signature changed** `Pest\Plugins\Parallel\Paratest\CleanConsoleOutput::doWrite`  

Was protected function doWrite(string $message, bool $newline): void; now protected function doWrite(string $message, bool $newline): void // @pest-arch-ignore-line. [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Signature changed** `Pest\TestCaseMethodFilters\TodoTestCaseFilter`  

Was final class TodoTestCaseFilter implements TestCaseMethodFilter; now final readonly class TodoTestCaseFilter implements TestCaseMethodFilter. [packagist.org](https://packagist.org/packages/pestphp/pest#v3.0.0)
- **Signature changed** `toHaveMethods`  

The toHaveMethods expectation was replaced by an architectural expectation that expects a namespace or class name. Pass $object::class instead of the object. [pestphp.com](https://pestphp.com/docs/upgrade-guide)

## pestphp/pest v2.0.1 breaking changes

pestphp/pest v2.0.1, released March 20, 2023: 11 breaking changes.

- **Removed**  

Pest 2 needs PHP 8.1.0 or newer, so upgrade PHP before moving pestphp/pest to ^2.0. [pestphp.com](https://pestphp.com/docs/upgrade-guide)
- **Removed** `Pest\Laravel\PestServiceProvider`  

Pest\\Laravel\\PestServiceProvider was removed in pestphp/pest v2.0.1 [packagist.org](https://packagist.org/packages/pestphp/pest#v2.0.1)
- **Removed** `Pest\Logging\TeamCity`  

Pest\\Logging\\TeamCity was removed in pestphp/pest v2.0.1 [packagist.org](https://packagist.org/packages/pestphp/pest#v2.0.1)
- **Removed** `Pest\Support\Extendable`  

Pest\\Support\\Extendable was removed in pestphp/pest v2.0.1 [packagist.org](https://packagist.org/packages/pestphp/pest#v2.0.1)
- **Renamed** `faker`  

Update every call to faker() and its import to use fake() from Pest\\Faker instead. [pestphp.com](https://pestphp.com/docs/upgrade-guide)
- **Behavior changed** `dataset`  

Datasets declared in one test file can no longer be used by other files; move globally needed datasets to tests/Pest.php or tests/Datasets.php. [pestphp.com](https://pestphp.com/docs/upgrade-guide)
- **Configuration changed**  

If phpunit.xml uses a deprecated schema, run pest with --migrate-configuration to update it. [pestphp.com](https://pestphp.com/docs/upgrade-guide)
- **Signature changed** `dataset`  

Was function dataset(string $name, $dataset): void; now function dataset(string $name, Closure|iterable $dataset): void. [packagist.org](https://packagist.org/packages/pestphp/pest#v2.0.1)
- **Signature changed** `expect`  

Was function expect($value = null); now function expect(mixed $value = null): Expectation. [packagist.org](https://packagist.org/packages/pestphp/pest#v2.0.1)
- **Signature changed** `test`  

Was function test(string $description = null, Closure $closure = null); now function test(string $description = null, Closure $closure = null): HigherOrderTapProxy|TestCall. [packagist.org](https://packagist.org/packages/pestphp/pest#v2.0.1)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [pestphp/pest-plugin-laravel](https://since.dev/packages/packagist/pestphp/pest-plugin-laravel.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
