NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #575 most downloaded on Packagist
Laravel Testing Helper for Packages Development
Latest stable
v11.3.0
Last release 1 months ago
24 Sep 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
440 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Add Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.
Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.Orchestra\Testbench\php_version_compare() function.--pretend options on relevant commands.Update minimum support for Testbench Core v11.4.0+. (v11.2.0...v11.4.0)
symfony/polyfill-php84 for Pdo\Mysql class on PHP 8.3 and below.Orchestra\Testbench\Attributes\WithConfig after application has been booted to allow merging configuration via Service Provider by default. Use defer: false parameter to disable this.flushState() to FormRequest to reset global strict mode between tests.Orchestra\Testbench\Attributes\WithConfig shouldn't defer setting up framework configuration.--without-cache option when using package:test command with nunomaduro/collision version 8.9.4+.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Update minimum support for Testbench Core v11.2.0+. (v11.0.0...v11.2.0)
method_exists() and class_exists() usage.flushState() to FormRequest to reset global strict mode between tests.Remove deprecated Orchestra\Testbench\Foundation\Env class.
Orchestra\Testbench\Foundation\Env class.Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait.Orchestra\Testbench\Foundation\Console\Actions\Action::pathLocation() method.Orchestra\Testbench\laravel_migration_path() function.@define-env@environment-setup@define-db@define-routeAdd Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.
Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.Orchestra\Testbench\php_version_compare() function.--pretend options on relevant commands.Orchestra\Testbench\Attributes\WithConfig after application has been booted to allow merging configuration via Service Provider by default. Use defer: false parameter to disable this.method_exists() and class_exists() usage.ServeCommand::trap() method to use TerminatingConsole.TESTBENCH_USER_MODEL environment variable when running serve command.Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.Orchestra\Testbench\Attributes\WithConfig shouldn't defer setting up framework configuration.--without-cache option when using package:test command with nunomaduro/collision version 8.9.4+.Update minimum support for Testbench Core v10.11.0+. (v10.10.0...v10.11.0)
--parallel compatibility with WithFixtures trait.Update minimum support for Testbench Core v10.10.0+. (v10.9.0...v10.10.0)
testbench.yaml configured with seeders: true.$__filename to resolve original PestPHP's testCase file.#[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.Update minimum support for Testbench Core v10.9.0+. (v10.8.0...v10.9.0)
Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.JsonResource and JsonApiResource states.Orchestra\Sidekick\package_path() for better root package path detection.Update minimum support for Testbench Core v10.8.0+. (v10.7.0...v10.8.0)
12.40.0.Orchestra\Testbench\Workbench\Actions\AddAssetSymlinkFoldersOrchestra\Testbench\Workbench\Actions\RemoveAssetSymlinkFoldersUpdate minimum support for Testbench Core v10.7.0+. (v10.6.1...v10.7.0)
12.28.0.Update minimum Laravel Framework version to 12.24.0.
12.24.0.Update minimum support for Testbench Core v10.6.1+. (v10.4.0...v10.6.1)
Update minimum support for Testbench Core v10.4.0+. (v10.3.0...v10.4.0)
Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.Fix handling deprecations logging when logger is not not available when running tests.
Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Illuminate\Database\Eloquent\Model::automaticallyEagerLoadRelationships() state between tests if the method exists.Update minimum support for Testbench Core v10.2.2+. (v10.2.1...v10.2.2)
Illuminate\Database\Eloquent\Model states between tests.Update minimum support for Testbench Core v10.2.1+. (v10.2.0...v10.2.1)
symfony/polyfill-php84.Update minimum support for Testbench Core v10.2.0+. (v10.1.0...v10.2.0)
Closure to Orchestra\Testbench\remote() function.Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).Deprecate following PHPUnit annotations:
resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.@environment-setup@define-env@define-database@define-routeRemove deprecated methods in Orchestra\Testbench\Concerns\CreatesApplication trait:
Orchestra\Testbench\TestCase to use Illuminate\Foundation\Testing\Concerns\InteractsWithViews trait.Orchestra\Testbench\once()Orchestra\Testbench\transform_relative_path()Orchestra\Testbench\Concerns\CreatesApplication trait:
getBasePath()getDefaultApplicationBootstrapFile()Orchestra\Testbench\Concerns\InteractsWithMigrations trait:
loadMigrationsWithoutRollbackFrom()loadLaravelMigrationsWithoutRollback()runLaravelMigrationsWithoutRollback()Add Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.
Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.Orchestra\Testbench\php_version_compare() function.--pretend options on relevant commands.Orchestra\Testbench\Attributes\WithConfig after application has been booted to allow merging configuration via Service Provider by default. Use defer: false parameter to disable this.ServeCommand::trap() method to use TerminatingConsole.TESTBENCH_USER_MODEL environment variable when running serve command.Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.Orchestra\Testbench\Attributes\WithConfig shouldn't defer setting up framework configuration.--without-cache option when using package:test command with nunomaduro/collision version 8.9.4+.Update minimum support for Testbench Core v9.20.0+. (v9.18.0...v9.20.0)
testbench.yaml configured with seeders: true.$__filename to resolve original PestPHP's testCase file.--parallel compatibility with WithFixtures trait.#[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.Update minimum support for Testbench Core v9.18.0+. (v9.16.0...v9.18.0)
Orchestra\Testbench\terminate() and Orchestra\Testbench\bail() function to allow using exit() on pnctl enabled tests.Orchestra\Testbench\uses_default_skeleton() function.Illuminate\Validator\Validator state.Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.Illuminate\Support\Str states via during test teardown.Orchestra\Sidekick\package_path() for better root package path detection.Update minimum support for Testbench Core v9.16.0+. (v9.14.0...v9.16.0)
journal_mode configuration.Collection::make() to new Collection().Fix handling deprecations logging when logger is not not available when running tests.
Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Update minimum support for Testbench Core v9.13.3+. (v9.13.0...v9.13.3)
Illuminate\Database\Eloquent\Model states between tests.Update minimum support for Testbench Core v9.13.0+. (v9.12.0...v9.13.0)
Closure to Orchestra\Testbench\remote() function.Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).Deprecate following PHPUnit annotations:
resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.@environment-setup@define-env@define-database@define-routeRe-add deprecated getBasePath() method pending removal in Testbench 10.0.
orchestra/sidekick.Illuminate\Foundation\Testing\Concerns\InteractsWithViews.getBasePath() method pending removal in Testbench 10.0.Update minimum support for Testbench Core v9.10.0+. (v9.9.0...v9.10.0)
Orchestra\Testbench\Concerns\CreatesApplication::resolveApplicationFacades() method.Orchestra\Testbench\Concerns\CreatesApplication::getApplicationBasePath() method as replacement to Orchestra\Testbench\Concerns\CreatesApplication::getBasePath().Orchestra\Testbench\Foundation\Application::deleteVendorSymlink() method.discover.factories.vendor symlink when terminating Testbench CLI.config/database.php skeleton file.Update minimum support for Testbench Core v9.9.0+. (v9.8.0...v9.9.0)
Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces() to flush cached namespaces and classes during installation.realpath() on vendor:publish output.Update minimum support for Testbench Core v9.8.0+. (v9.7.0...v9.8.0)
Orchestra\Testbench\transform_realpath_to_relative() function.vendor:publish command.$force parameter to Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.Deprecate Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait, use Orchestra\Testbench\Foundation\Console\TerminatingConsol…
Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.Orchestra\Testbench\Workbench\Workbench::applicationUserModel() method.workbench.auth config to true.package:sync-skeleton command.Orchestra\Testbench\Bootstrap\LoadConfiguration and Orchestra\Testbench\Bootstrap\LoadConfigurationWithWorkbench to allow being extended by Testbench Dusk.Orchestra\Testbench\Console\Commander.$tty parameter to Orchestra\Testbench\remote() function.Orchestra\Testbench\Foundation\Bootstrap\CreateVendorSymlink class and mark it as @api.$backupExistingFile and $resetOnTerminating parameter to following methods in Orchestra\Testbench\Foundation\Console\Concerns\CopyTestbenchFiles trait:
copyTestbenchConfigurationFile()copyTestbenchDotEnvFile()laravel/serializable-closure v2.Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait, use Orchestra\Testbench\Foundation\Console\TerminatingConsole class instead.Update minimum support for Testbench Core v9.6.2+. (v9.6.0...v9.6.2)
route:cache when health: true configured using testbench.yaml.Update minimum support for Testbench Core v9.6.0+. (v9.5.3...v9.6.0)
Orchestra\Testbench\Foundation\Bootstrap\DeleteVendorSymlink class.Orchestra\Testbench\Concerns\InteractsWithMockery trait.--database option to package:create-sqlite-db command.--database and --all options to package:drop-sqlite-db command.Orchestra\Testbench\php_binary() function.laravel/serializable-closure 2.package:create-sqlite-db.PHP_CLI_SERVER_WORKERS via Composer Script.CTRL+C and CTRL+BREAK supports on Windows without pcntl extension.Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile should be able to handle $from and $to when given as false or null.#[WithMigration('queue')] should load the default migrations.Update minimum support for Testbench Core v9.5.3+. (v9.5.2...v9.5.3)
shouldSeed() exists and return false.Update minimum support for Testbench Core v9.5.2+. (v9.5.0...v9.5.2)
SIGHUP, SIGUSR1, and SIGUSR2 signals via Testbench CLI.config/concurrency.php configuration file.serve command to reset published .env and testbench.yaml.Deprecated Orchestra\Testbench\laravel_migration_path(), use default_migration_path() instead.
Orchestra\Testbench\Attributes\RequiresDatabase attribute class.markTestSkippedWhen() and markTestSkippedUnless() assertion helper to conditionally handle markTestSkipped().Orchestra\Testbench\default_migration_path() helper function.Orchestra\Testbench\laravel_vendor_exists() helper function.vendor symlink directory if it was created while running tests.view.paths configuration not being updated to include workbench/resources/views due to IoC booting sequence.Orchestra\Testbench\laravel_migration_path(), use default_migration_path() instead.Update minimum support for Testbench Core v9.4.0+. (v9.3.0...v9.4.0)
artisan binary to Laravel skeleton.Orchestra\Testbench\join_paths() function.Orchestra\Testbench\Attributes\UsesVendor attribute class.defineStashRoutes() method to register adhoc route for test.Orchestra\Testbench\default_skeleton_path(), Orchestra\Testbench\package_path(), and Orchestra\Testbench\workbench_path() usage based on new Orchestra\Testbench\join_paths() function.Update minimum support for Testbench Core v9.3.0+. (v9.2.0...v9.3.0)
Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile to remove .gitkeep file when directory contain one or more files.InteractsWithPublishedFiles should only flush published files within database/migrations directory.Update minimum support for Testbench Core v9.2.0+. (v9.1.3...v9.2.0)
Orchestra\Testbench\Attributes\ResolvesLaravelOrchestra\Testbench\Attributes\UsesFrameworkConfigurationfactories using Workbench to map Workbench\App\Models to Workbench\Database\Factories classes.workbench/app/Console/Commands.JsonSerializable to Orchestra\Testbench\Foundation\UndefinedValue.workbench as default environment value.Orchestra\Testbench\Attributes\Define and Orchestra\Testbench\Attributes\DefineEnvironment to be used on the class level by @danjohnson95usesTestingFeature() attribute registration is loaded before class attributes instead of method attributes.Update minimum support for Testbench Core v9.1.3+. (v9.1.2...v9.1.3)
Orchestra\Testbench\Workench\Workbench::applicationExceptionHandler() usage to detect Workbench\App\Exceptions\Handler class.Orchestra\Testbench\Console\Kernel and Orchestra\Testbench\Foundation\Console\Kernel unable to discover commands.Update minimum support for Testbench Core v9.1.2+. (v9.1.0...v9.1.2)
Orchestra\Testbench\package_path() function instead of TESTBENCH_WORKING_PATH constant.Orchestra\Testbench\Attributes\RequiresLaravel attribute usage.Update minimum support for Testbench Core v9.1.0+. (v9.0.13...v9.1.0)
TESTBENCH_WORKING_PATH from environment variable before fallback to getcwd().Update minimum support for Testbench Core v9.0.13+. (v9.0.9...v9.0.13)
Orchestra\Testbench\remote to accept $env with either array or string.TESTBENCH_PACKAGE_REMOTE=true when running command using Orchestra\Testbench\remote.workbench environment variable when Testbench CLI is used outside of testing.serve command.runningInUnitTests() returning true when not running tests via Testbench CLI.Update minimum support for Testbench Core v9.0.9+. (v9.0.7...v9.0.9)
11.1.0.HASH_VERIFY environment variables.RefreshDatabaseState when using LazilyRefreshDatabase with SQLite :in-memory: database connections.Update minimum support for Testbench Core v9.0.7+. (v9.0.6...v9.0.7)
RefreshDatabase to be executed on tearDown() only limited when ad-hoc migrations was added during test.Update minimum support for Testbench Core v9.0.6+. (v9.0.1...v9.0.6)
ResetRefreshDatabaseState via tearDownTheTestEnvironmentUsingTestCase() method.RefreshDatabaseState::$migrated and RefreshDatabaseState::$lazilyRefreshed before loading migration paths to the instance of migrator.utf8mb4_unicode_ci.beforeApplicationDestroyed() usage on loadLaravelMigrations() method.RefreshDatabase usage does not reset the database migrations between tests.class_implements() should only be executed if the Attribute class exists.bootstrap/app.php when configured using a custom skeleton.Deprecate Orchestra\Testbench\Concerns\HandlesAnnotations in line with PHPUnit removal support for meta-comment support using annotation.
Orchestra\Testbench\Concerns\HandlesAnnotations in line with PHPUnit removal support for meta-comment support using annotation.Orchestra\Testbench\Concerns\Database\HandlesConnections trait.create-sqlite-db and drop-sqlite-db standalone commands.Add Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.
Orchestra\Testbench\Foundation\Env::flushState() method and revert class deprecation.Orchestra\Testbench\php_version_compare() function.--pretend options on relevant commands.Orchestra\Testbench\Attributes\WithConfig after application has been booted to allow merging configuration via Service Provider by default. Use defer: false parameter to disable this.ServeCommand::trap() method to use TerminatingConsole.TESTBENCH_USER_MODEL environment variable when running serve command.Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.testbench.yaml configured with seeders: true.$__filename to resolve original PestPHP's testCase file.Orchestra\Testbench\Attributes\WithConfig shouldn't defer setting up framework configuration.--parallel compatibility with WithFixtures trait.#[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.Limit compatible guzzlehttp/guzzle version to be used with Laravel Framework 10.
guzzlehttp/guzzle version to be used with Laravel Framework 10.Update minimum support for Testbench Core v8.40.0+. (v8.37.0...v8.40.0)
Orchestra\Testbench\package_version_compare() function.Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.Illuminate\Support\Str states via during test teardown.Orchestra\Sidekick\package_path() for better root package path detection.Fix handling deprecations logging when logger is not not available when running tests.
Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.Update minimum support for Testbench Core v8.36.1+. (v8.36.0...v8.36.1)
Illuminate\Database\Eloquent\Model states between tests.Update minimum support for Testbench Core v8.36.0+. (v8.35.0...v8.36.0)
Orchestra\Testbench\remote() function to use Orchestra\Testbench\Foundation\Process\RemoteCommand.TESTBENCH_ENVIRONMENT_FILE_USING to TESTBENCH_ENVIRONMENT_FILE_USING (internal environment variable).workbench/bootstrap/providers.php.Update minimum support for Testbench Core v8.35.0+. (v8.34.0...v8.35.0)
resolvePhpUnitTestClassName() and resolvePhpUnitTestMethodName() to Orchestra\Testbench\Concerns\InteractsWithPHPUnit trait.usesTestingFeature() to register attribute directly on test method.vendor detection on the default skeleton.Orchestra\Sidekick\is_symlink() function instead of is_link() to improves support on Windows.::class instead of get_class().vendor symlink via package:purge-skeleton command.Orchestra\Testbench\Attributes\UsesVendor::beforeEach() method.Re-add deprecated getBasePath() method pending removal in Testbench 10.0.
orchestra/sidekick.Illuminate\Foundation\Testing\Concerns\InteractsWithViews.getBasePath() method pending removal in Testbench 10.0.Update minimum support for Testbench Core v8.33.0+. (v8.32.0...v8.33.0)
Orchestra\Testbench\Concerns\CreatesApplication::resolveApplicationFacades() method.Orchestra\Testbench\Concerns\CreatesApplication::getApplicationBasePath() method as replacement to Orchestra\Testbench\Concerns\CreatesApplication::getBasePath().Orchestra\Testbench\Foundation\Application::deleteVendorSymlink() method.discover.factories.vendor symlink when terminating Testbench CLI.Update minimum support for Testbench Core v8.32.0+. (v8.31.0...v8.32.0)
Orchestra\Testbench\Workbench\Workbench::flushCachedClassAndNamespaces() to flush cached namespaces and classes during installation.realpath() on vendor:publish output.Update minimum support for Testbench Core v8.31.0+. (v8.30.0...v8.31.0)
Orchestra\Testbench\transform_realpath_to_relative() function.vendor:publish command.$force parameter to Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.Deprecate Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait, use Orchestra\Testbench\Foundation\Console\TerminatingConsol…
Orchestra\Testbench\Workbench\Workbench::detectNamespace() method.Orchestra\Testbench\Workbench\Workbench::applicationUserModel() method.workbench.auth config to true.package:sync-skeleton command.Orchestra\Testbench\Bootstrap\LoadConfiguration and Orchestra\Testbench\Bootstrap\LoadConfigurationWithWorkbench to allow being extended by Testbench Dusk.Orchestra\Testbench\Console\Commander.$tty parameter to Orchestra\Testbench\remote() function.Orchestra\Testbench\Foundation\Bootstrap\CreateVendorSymlink class and mark it as @api.$backupExistingFile and $resetOnTerminating parameter to following methods in Orchestra\Testbench\Foundation\Console\Concerns\CopyTestbenchFiles trait:
copyTestbenchConfigurationFile()copyTestbenchDotEnvFile()Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait, use Orchestra\Testbench\Foundation\Console\TerminatingConsole class instead.One column per quarter.