This changelog references the relevant changes (bug and security fixes) done to orchestra/testbench-core.
Released: 2026-04-24
- Fix
Orchestra\Testbench\Attributes\WithConfigshouldn't defer setting up framework configuration.
Released: 2026-04-23
- Loads
Orchestra\Testbench\Attributes\WithConfigafter application has been booted to allow merging configuration via Service Provider by default. Usedefer: falseparameter to disable this.
- Fix missing
--without-cacheoption when usingpackage:testcommand withnunomaduro/collisionversion8.9.4+.
Released: 2026-04-07
- Supports PHPUnit 13.1.
- Removed no longer relevants
method_exists()andclass_exists()usage.
Released: 2026-03-31
- Overrides
ServeCommand::trap()method to useTerminatingConsole.
Released: 2026-03-24
- Add
TESTBENCH_USER_MODELenvironment variable when runningservecommand. - Utilise
Orchestra\Testbench\Foundation\Console\TerminatingConsolewhen runningserve.
Released: 2026-03-18
- Supports for Laravel Framework 12.55.0.
- Fix
--parallelcompatibility withWithFixturestrait.
Released: 2026-03-16
- Run seeder when
testbench.yamlconfigured withseeders: true. - Use predefined
$__filenameto resolve original PestPHP's testCase file. - Update skeleton.
- Fix
#[UsesVendor]attribute fails due to unbooted application, causingBindingResolutionExceptionto be thrown.
Released: 2026-01-12
- Add
Orchestra\Testbench\package_version_compare()function. - Add
Orchestra\Testbench\Concerns\WithFixturesto automatically loads fixtures file for test.
- Use
Orchestra\Sidekick\package_path()for better root package path detection.
Released: 2025-12-26
- Supports flushing
JsonResourceandJsonApiResourcestates.
Released: 2025-12-08
- Supports PHPUnit 12.5.
Released: 2025-11-24
- PHP 8.5 Compatibility.
- Supports for Laravel Framework 12.40.0 or above.
- Fix symlink removal on Windows environment in the following classes:
Orchestra\Testbench\Workbench\Actions\AddAssetSymlinkFoldersOrchestra\Testbench\Workbench\Actions\RemoveAssetSymlinkFolders
Released: 2025-10-14
- Supports for Laravel Framework 12.28.0 or above.
- Supports PHPUnit 12.4.
- Support disabling Laravel default service providers.
- Flush
Illuminate\Support\Strstates via during test teardown.
Released: 2025-09-03
- Add
Orchestra\Testbench\uses_default_skeleton()function. - Supports flushing
Illuminate\Validator\Validatorstate.
- fix loading framework configuration for
laravel/frameworkrepository.
Released: 2025-09-03
- Added
Orchestra\Testbench\bail()function to allow usingexit()onpnctlenabled tests.
- Ability to merge Framework configurations when using custom skeleton.
Released: 2025-08-28
- Added
Orchestra\Testbench\terminate()function to allow usingexit()onpnctlenabled tests.
Released: 2025-08-27
- Update skeleton's configuration.
- Fix
Orchestra\Testbench\remote()with serializable closure usage.
Released: 2025-08-20
- Revert minimum supported Laravel Framework version to 12.8.0 and above.
Released: 2025-08-12
- Supports for Laravel Framework 12.23.2 or above (fixed integration with PHPUnit 12.3.4).
Released: 2025-08-07
- Supports PHPUnit 12.3.
- Remove temporary SQLite database files available via
journal_modeconfiguration. - Convert
Collection::make()tonew Collection().
Released: 2025-06-08
- Supports PHPUnit 12.2.
Orchestra\Foundation\Envnow extendsOrchestra\Sidekick\Env.- Update skeleton's configuration.
Released: 2025-05-12
- Requires Laravel Framework 12.8.0 and above.
Orchestra\Testbench\PHPUnit\TestCasenow implementsOrchestra\Testbench\Concerns\InteractsWithMockery.
- Fix handling deprecations logging when logger is not not available when running tests.
Released: 2025-05-07
- Flush
Illuminate\Database\Eloquent\Model::automaticallyEagerLoadRelationships()state between tests if the method exists.
Released: 2025-04-27
- Flush
Illuminate\Database\Eloquent\Modelstates between tests.
Released: 2025-04-13
- Remove
symfony/polyfill-php84.
Released: 2025-04-06
- Add ability to pass
ClosuretoOrchestra\Testbench\remote()function.
- Add support for PHPUnit 12.1.
- Refactor
Orchestra\Testbench\remote()function to useOrchestra\Testbench\Foundation\Process\RemoteCommand. - Rename
TESTBENCH_ENVIRONMENT_FILE_USINGtoTESTBENCH_ENVIRONMENT_FILE_USING(internal environment variable).
Released: 2025-03-06
- Added
resolvePhpUnitTestClassName()andresolvePhpUnitTestMethodName()toOrchestra\Testbench\Concerns\InteractsWithPHPUnittrait.
- Allows
usesTestingFeature()to register attribute directly on test method. - Improves
vendordetection on the default skeleton. - Utilise
Orchestra\Sidekick\is_symlink()function instead ofis_link()to improves support on Windows. - Use
::classinstead ofget_class(). - Delete
vendorsymlink viapackage:purge-skeletoncommand.
- Fix static variable via
Orchestra\Testbench\Attributes\UsesVendor::beforeEach()method.
- Deprecate following PHPUnit annotations:
@environment-setup@define-env@define-database@define-route
Released: 2025-03-03
- Fix
Orchestra\Testbench\Attributes\UsesVendorcauses IoC Container to be out of sync.
Released: 2025-02-25
- Revert
filesystems.disks.local.servedefault configuration value totrue.
Released: 2025-02-24
- Set
filesystems.disks.local.servedefault configuration value tofalse.
Released: 2025-02-24
- Update support for Laravel Framework v12.
- Update
Orchestra\Testbench\TestCaseto useIlluminate\Foundation\Testing\Concerns\InteractsWithViewstrait.
- Remove deprecated functions:
Orchestra\Testbench\once()Orchestra\Testbench\transform_relative_path()
- Remove deprecated methods in
Orchestra\Testbench\Concerns\CreatesApplicationtrait:getBasePath()getDefaultApplicationBootstrapFile()
- Remove deprecated methods in
Orchestra\Testbench\Concerns\InteractsWithMigrationstrait:loadMigrationsWithoutRollbackFrom()loadLaravelMigrationsWithoutRollback()runLaravelMigrationsWithoutRollback()