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
On this page
Latest version v4.1.1, released November 20, 2026. MIT license. Source repository
Packages on Packagist run on PHP. PHP end of life dates.
- From v4.0.0-alpha1 to v4.0.0: 704 breaking changes in 1 version.
behat/behat v4.0.0 breaking changes
- Removed
Steps using PHPUnit assertions need the behat/phpunit-assertions-extension package to keep working. github.com - Removed
Behat\Behat\ApplicationFactory::VERSION
Behat\Behat\ApplicationFactory::VERSION was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Context\Annotation\AnnotationReader
Behat\Behat\Context\Annotation\AnnotationReader was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Context\Argument\CompositeFactory
Use CompositeArgumentResolverFactory instead. packagist.org - Removed
Behat\Behat\Context\Argument\NullFactory::generateArgumentResolvers
Behat\Behat\Context\Argument\NullFactory::generateArgumentResolvers was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Context\Argument\SuiteScopedResolverFactory
Use ArgumentResolverFactory instead. packagist.org - Removed
Behat\Behat\Context\Argument\SuiteScopedResolverFactoryAdapter
Use ArgumentResolverFactory instead. packagist.org - Removed
Behat\Behat\Context\CustomSnippetAcceptingContext
Behat\Behat\Context\CustomSnippetAcceptingContext was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Context\Reader\AnnotatedContextReader
Behat\Behat\Context\Reader\AnnotatedContextReader was removed in behat/behat v4.0.0 packagist.org - 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 - Removed
Behat\Behat\Context\Snippet\Generator\ContextInterfaceBasedContextIdentifier
Behat\Behat\Context\Snippet\Generator\ContextInterfaceBasedContextIdentifier was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Context\Snippet\Generator\ContextInterfaceBasedPatternIdentifier
Behat\Behat\Context\Snippet\Generator\ContextInterfaceBasedPatternIdentifier was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Context\SnippetAcceptingContext
Behat\Behat\Context\SnippetAcceptingContext was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Definition\Context\Annotation\DefinitionAnnotationReader
Behat\Behat\Definition\Context\Annotation\DefinitionAnnotationReader was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Definition\Pattern\Pattern::getCanonicalText
Use getSuggestedMethodName instead. packagist.org - Removed
Behat\Behat\EventDispatcher\Cli\StopOnFailureController
Behat\Behat\EventDispatcher\Cli\StopOnFailureController was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\EventDispatcher\Event\AfterBackgroundSetup::getScenario
Use getBackground instead. packagist.org - Removed
Behat\Behat\EventDispatcher\Event\AfterBackgroundTested::getScenario
Use getBackground instead. packagist.org - Removed
Behat\Behat\EventDispatcher\Event\BackgroundTested::getScenario
Behat\Behat\EventDispatcher\Event\BackgroundTested::getScenario was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\EventDispatcher\Event\BeforeBackgroundTeardown::getScenario
Use getBackground instead. packagist.org - Removed
Behat\Behat\EventDispatcher\Event\BeforeBackgroundTested::getScenario
Use getBackground instead. packagist.org - Removed
Behat\Behat\EventDispatcher\Event\ScenarioLikeTested
Behat\Behat\EventDispatcher\Event\ScenarioLikeTested was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\EventDispatcher\ServiceContainer\EventDispatcherExtension::loadStopOnFailureController
Behat\Behat\EventDispatcher\ServiceContainer\EventDispatcherExtension::loadStopOnFailureController was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\EventDispatcher\ServiceContainer\EventDispatcherExtension::loadTickingStepTester
Behat\Behat\EventDispatcher\ServiceContainer\EventDispatcherExtension::loadTickingStepTester was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\EventDispatcher\Tester\TickingStepTester
Behat\Behat\EventDispatcher\Tester\TickingStepTester was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\HelperContainer\Argument\ServicesResolverFactory::generateArgumentResolvers
Behat\Behat\HelperContainer\Argument\ServicesResolverFactory::generateArgumentResolvers was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Hook\Context\Annotation\HookAnnotationReader
Behat\Behat\Hook\Context\Annotation\HookAnnotationReader was removed in behat/behat v4.0.0 packagist.org - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Removed
Behat\Behat\Output\Statistics\StepStat
Use StepStatV2 instead. packagist.org - Removed
Behat\Behat\Snippet\ServiceContainer\SnippetExtension::loadController
Behat\Behat\Snippet\ServiceContainer\SnippetExtension::loadController was removed in behat/behat v4.0.0 packagist.org - Removed
Behat\Behat\Snippet\ServiceContainer\SnippetExtension::loadRegistry
Behat\Behat\Snippet\ServiceContainer\SnippetExtension::loadRegistry was removed in behat/behat v4.0.0 packagist.org
And 654 more in this version. Sign up to see every change
behat/behat v4.0.0-alpha1 breaking changes
- Removed
YAML config and config files in the config directory are no longer read. Convert your configuration to PHP. github.com - Removed
Extensions must be configured with their full class name instead of a short name. github.com - Removed
Deprecated constants, methods, constructor parameters and similar code have been dropped. Stop using them before upgrading. github.com - Removed
@annotations
Steps, hooks and transformations can no longer be defined with docblock annotations. Use native PHP Attributes instead. github.com - Removed
ScenarioLikeTested
Listeners must use the separate ScenarioTested and BackgroundTested events instead. github.com - Signature changed
SimpleArgumentTransformation
Implementations of SimpleArgumentTransformation must now define a mandatory constructor. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.