---
title: "behat/behat v4.0.0 Breaking Changes on Packagist | Since.dev"
description: "What each behat/behat release removed, renamed or changed: 710 breaking changes in 2 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/behat/behat
last_updated: 2026-12-04
---

# behat/behat breaking changes

behat/behat v4.0.0 (September 28, 2026) is its newest release with breaking changes, 704 of them. The first: Removes built-in support for PHPUnit assertions in behat/behat v4.0.0. Every breaking API change we have recorded in behat/behat on Packagist: 710 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v4.1.1`, released November 20, 2026. MIT license. [Source repository](https://github.com/Behat/Behat)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v4.0.0-alpha1](#v-v4-0-0-alpha1) to [v4.0.0](#v-v4-0-0): 704 breaking changes in 1 version.

## behat/behat v4.0.0 breaking changes

behat/behat v4.0.0, released September 28, 2026: 704 breaking changes.

- **Removed**  

Steps using PHPUnit assertions need the behat/phpunit-assertions-extension package to keep working. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0)
- **Removed** `Behat\Behat\ApplicationFactory::VERSION`  

Behat\\Behat\\ApplicationFactory::VERSION was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Annotation\AnnotationReader`  

Behat\\Behat\\Context\\Annotation\\AnnotationReader was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Argument\CompositeFactory`  

Use CompositeArgumentResolverFactory instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Argument\NullFactory::generateArgumentResolvers`  

Behat\\Behat\\Context\\Argument\\NullFactory::generateArgumentResolvers was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Argument\SuiteScopedResolverFactory`  

Use ArgumentResolverFactory instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Argument\SuiteScopedResolverFactoryAdapter`  

Use ArgumentResolverFactory instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\CustomSnippetAcceptingContext`  

Behat\\Behat\\Context\\CustomSnippetAcceptingContext was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Reader\AnnotatedContextReader`  

Behat\\Behat\\Context\\Reader\\AnnotatedContextReader was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\ServiceContainer\ContextExtension::ANNOTATION_READER_TAG`  

Behat\\Behat\\Context\\ServiceContainer\\ContextExtension::ANNOTATION_READER_TAG was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Snippet\Generator\ContextInterfaceBasedContextIdentifier`  

Behat\\Behat\\Context\\Snippet\\Generator\\ContextInterfaceBasedContextIdentifier was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\Snippet\Generator\ContextInterfaceBasedPatternIdentifier`  

Behat\\Behat\\Context\\Snippet\\Generator\\ContextInterfaceBasedPatternIdentifier was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Context\SnippetAcceptingContext`  

Behat\\Behat\\Context\\SnippetAcceptingContext was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Definition\Context\Annotation\DefinitionAnnotationReader`  

Behat\\Behat\\Definition\\Context\\Annotation\\DefinitionAnnotationReader was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Definition\Pattern\Pattern::getCanonicalText`  

Use getSuggestedMethodName instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Cli\StopOnFailureController`  

Behat\\Behat\\EventDispatcher\\Cli\\StopOnFailureController was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Event\AfterBackgroundSetup::getScenario`  

Use getBackground instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Event\AfterBackgroundTested::getScenario`  

Use getBackground instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Event\BackgroundTested::getScenario`  

Behat\\Behat\\EventDispatcher\\Event\\BackgroundTested::getScenario was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Event\BeforeBackgroundTeardown::getScenario`  

Use getBackground instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Event\BeforeBackgroundTested::getScenario`  

Use getBackground instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Event\ScenarioLikeTested`  

Behat\\Behat\\EventDispatcher\\Event\\ScenarioLikeTested was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\ServiceContainer\EventDispatcherExtension::loadStopOnFailureController`  

Behat\\Behat\\EventDispatcher\\ServiceContainer\\EventDispatcherExtension::loadStopOnFailureController was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\ServiceContainer\EventDispatcherExtension::loadTickingStepTester`  

Behat\\Behat\\EventDispatcher\\ServiceContainer\\EventDispatcherExtension::loadTickingStepTester was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\EventDispatcher\Tester\TickingStepTester`  

Behat\\Behat\\EventDispatcher\\Tester\\TickingStepTester was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\HelperContainer\Argument\ServicesResolverFactory::generateArgumentResolvers`  

Behat\\Behat\\HelperContainer\\Argument\\ServicesResolverFactory::generateArgumentResolvers was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Hook\Context\Annotation\HookAnnotationReader`  

Behat\\Behat\\Hook\\Context\\Annotation\\HookAnnotationReader was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\Node\EventListener\JUnit\JUnitOutlineStoreListener::getCurrentOutline`  

Behat\\Behat\\Output\\Node\\EventListener\\JUnit\\JUnitOutlineStoreListener::getCurrentOutline was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::createOutputPrinterDefinition`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::createOutputPrinterDefinition was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadCorePrinters`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadCorePrinters was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadExpandedOutlinePrinter`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadExpandedOutlinePrinter was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadFormatter`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadFormatter was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadHookPrinters`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadHookPrinters was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadPrinterHelpers`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadPrinterHelpers was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadRootNodeListener`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadRootNodeListener was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadStatisticsPrinter`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadStatisticsPrinter was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::loadTableOutlinePrinter`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::loadTableOutlinePrinter was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::processListenerWrappers`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::processListenerWrappers was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::proxyEventsIfParameterIsSet`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::proxyEventsIfParameterIsSet was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::proxySiblingEvents`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::proxySiblingEvents was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\PrettyFormatterFactory::rearrangeBackgroundEvents`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\PrettyFormatterFactory::rearrangeBackgroundEvents was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\ProgressFormatterFactory::createOutputPrinterDefinition`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\ProgressFormatterFactory::createOutputPrinterDefinition was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\ProgressFormatterFactory::loadCorePrinters`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\ProgressFormatterFactory::loadCorePrinters was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\ProgressFormatterFactory::loadFormatter`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\ProgressFormatterFactory::loadFormatter was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\ProgressFormatterFactory::loadPrinterHelpers`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\ProgressFormatterFactory::loadPrinterHelpers was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\ProgressFormatterFactory::loadRootNodeListener`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\ProgressFormatterFactory::loadRootNodeListener was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\ServiceContainer\Formatter\ProgressFormatterFactory::processListenerWrappers`  

Behat\\Behat\\Output\\ServiceContainer\\Formatter\\ProgressFormatterFactory::processListenerWrappers was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Output\Statistics\StepStat`  

Use StepStatV2 instead. [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Snippet\ServiceContainer\SnippetExtension::loadController`  

Behat\\Behat\\Snippet\\ServiceContainer\\SnippetExtension::loadController was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)
- **Removed** `Behat\Behat\Snippet\ServiceContainer\SnippetExtension::loadRegistry`  

Behat\\Behat\\Snippet\\ServiceContainer\\SnippetExtension::loadRegistry was removed in behat/behat v4.0.0 [packagist.org](https://packagist.org/packages/behat/behat#v4.0.0)

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

## behat/behat v4.0.0-alpha1 breaking changes

behat/behat v4.0.0-alpha1, released September 28, 2026: 6 breaking changes.

- **Removed**  

YAML config and config files in the config directory are no longer read. Convert your configuration to PHP. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0-alpha1)
- **Removed**  

Extensions must be configured with their full class name instead of a short name. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0-alpha1)
- **Removed**  

Deprecated constants, methods, constructor parameters and similar code have been dropped. Stop using them before upgrading. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0-alpha1)
- **Removed** `@annotations`  

Steps, hooks and transformations can no longer be defined with docblock annotations. Use native PHP Attributes instead. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0-alpha1)
- **Removed** `ScenarioLikeTested`  

Listeners must use the separate ScenarioTested and BackgroundTested events instead. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0-alpha1)
- **Signature changed** `SimpleArgumentTransformation`  

Implementations of SimpleArgumentTransformation must now define a mandatory constructor. [github.com](https://github.com/Behat/Behat/releases/tag/v4.0.0-alpha1)

## 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.
