Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Testbench Core Laravel Package

orchestra/testbench-core

Testbench Core is the foundation for Orchestra Testbench, providing a lightweight Laravel application bootstrap for package testing. Run artisan commands, migrations, factories, and routes in your test suite with versioned Laravel compatibility.

View on GitHub
Deep Wiki
Context7
v11.2.0

Changes

  • Supports PHPUnit 13.1.
  • Removed no longer relevants method_exists() and class_exists() usage.
v10.13.0

Changes

  • Supports PHPUnit 13.1.
  • Removed no longer relevants method_exists() and class_exists() usage.
v11.1.1

Changes

  • Overrides ServeCommand::trap() method to use TerminatingConsole.
v10.12.1

Changes

  • Overrides ServeCommand::trap() method to use TerminatingConsole.
v9.21.1

Changes

  • Overrides ServeCommand::trap() method to use TerminatingConsole.
v8.42.1

Changes

  • Overrides ServeCommand::trap() method to use TerminatingConsole.
v11.1.0

Changes

  • Supports for Laravel Framework 13.1.1.
  • Add TESTBENCH_USER_MODEL environment variable when running serve command.
  • Utilise Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.
v10.12.0

Changes

  • Add TESTBENCH_USER_MODEL environment variable when running serve command.
  • Utilise Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.
v9.21.0

Changes

  • Add TESTBENCH_USER_MODEL environment variable when running serve command.
  • Utilise Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.
v8.42.0

Changes

  • Add TESTBENCH_USER_MODEL environment variable when running serve command.
  • Utilise Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.
v7.61.0

Changes

  • Add TESTBENCH_USER_MODEL environment variable when running serve command.
  • Utilise Orchestra\Testbench\Foundation\Console\TerminatingConsole when running serve.
v11.0.1

Fixes

  • Fix --parallel compatibility with WithFixtures trait.
v10.11.0

Changes

  • Supports for Laravel Framework 12.55.0.

Fixes

  • Fix --parallel compatibility with WithFixtures trait.
v9.20.0

Changes

  • Supports for Laravel Framework 11.50.0.

Fixes

  • Fix --parallel compatibility with WithFixtures trait.
v8.41.1

Fixes

  • Fix --parallel compatibility with WithFixtures trait.
v7.60.1

Fixes

  • Fix --parallel compatibility with WithFixtures trait.
v11.0.0

Changes

  • Update support for Laravel Framework v13.

Removed

  • Remove deprecated Orchestra\Testbench\Foundation\Env class.
  • Remove deprecated Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole trait.
  • Remove deprecated Orchestra\Testbench\Foundation\Console\Actions\Action::pathLocation() method.
  • Remove deprecated Orchestra\Testbench\laravel_migration_path() function.
  • Remove support for deprecated annotations:
    • [@define-env](https://github.com/define-env)
    • [@environment-setup](https://github.com/environment-setup)
    • [@define-db](https://github.com/define-db)
    • [@define-route](https://github.com/define-route)
v10.10.0

Changes

  • Run seeder when testbench.yaml configured with seeders: true.
  • Use predefined $__filename to resolve original PestPHP's testCase file.
  • Update skeleton.

Fixes

  • Fix #[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.
v9.19.0

Changes

  • Run seeder when testbench.yaml configured with seeders: true.
  • Use predefined $__filename to resolve original PestPHP's testCase file.

Fixes

  • Fix #[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.
v8.41.0

Changes

  • Run seeder when testbench.yaml configured with seeders: true.
  • Use predefined $__filename to resolve original PestPHP's testCase file.

Fixes

  • Fix #[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.
v7.60.0

Changes

  • Run seeder when testbench.yaml configured with seeders: true.

Fixes

  • Fix #[UsesVendor] attribute fails due to unbooted application, causing BindingResolutionException to be thrown.
v9.18.1

Changes

  • Supports PHPUnit 12.4 and 12.5.
v10.9.0

Added

  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.

Changes

  • Use Orchestra\Sidekick\package_path() for better root package path detection.
v9.18.0

Added

  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.

Changes

  • Use Orchestra\Sidekick\package_path() for better root package path detection.
v8.40.0

Added

  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.

Changes

  • Use Orchestra\Sidekick\package_path() for better root package path detection.
v7.59.0

Added

  • Add Orchestra\Testbench\package_version_compare() function.
  • Add Orchestra\Testbench\Concerns\WithFixtures to automatically loads fixtures file for test.

Changes

  • Use Orchestra\Sidekick\package_path() for better root package path detection.
v10.8.2

Changes

  • Supports flushing JsonResource and JsonApiResource states.
v10.8.1

Changes

  • Supports PHPUnit 12.5.
v10.8.0

Changes

  • 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\AddAssetSymlinkFolders
    • Orchestra\Testbench\Workbench\Actions\RemoveAssetSymlinkFolders
v10.7.0

Changes

  • Supports for Laravel Framework 12.28.0 or above.
  • Supports PHPUnit 12.4.
  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.
v9.17.0

Changes

  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.
v8.39.0

Changes

  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.
v7.58.0

Changes

  • Support disabling Laravel default service providers.
  • Flush Illuminate\Support\Str states via during test teardown.
v10.6.5

Added

  • Add Orchestra\Testbench\uses_default_skeleton() function.
  • Supports flushing Illuminate\Validator\Validator state.

Fixes

  • fix loading framework configuration for laravel/framework repository.
v9.16.3

Added

  • Add Orchestra\Testbench\uses_default_skeleton() function.
  • Supports flushing Illuminate\Validator\Validator state.

Fixes

  • fix loading framework configuration for laravel/framework repository.
v10.6.4

Added

  • Added Orchestra\Testbench\bail() function to allow using exit() on pnctl enabled tests.

Changes

  • Ability to merge Framework configurations when using custom skeleton.
v9.16.2

Added

  • Added Orchestra\Testbench\bail() function to allow using exit() on pnctl enabled tests.

Changes

  • Ability to merge Framework configurations when using custom skeleton.
v9.16.1

Added

  • Added Orchestra\Testbench\terminate() function to allow using exit() on pnctl enabled tests.
v10.6.3

Added

  • Added Orchestra\Testbench\terminate() function to allow using exit() on pnctl enabled tests.
v10.6.2

Changes

  • Update skeleton's configuration.

Fixes

  • Fix Orchestra\Testbench\remote() with serializable closure usage.
v10.6.1

Changes

  • Revert minimum supported Laravel Framework version to 12.8.0 and above.
v10.6.0

Changes

  • Supports for Laravel Framework 12.23.2 or above (fixed integration with PHPUnit 12.3.4).
v9.16.0

Changes

  • Supports for Laravel Framework 11.45.2 or above (fixed integration with PHPUnit 12.3.4).
  • Supports PHPUnit 12.2 and 12.3.
  • Remove temporary SQLite database files available via journal_mode configuration.
  • Convert Collection::make() to new Collection().
v10.5.0

Changes

  • Supports PHPUnit 12.3.
  • Remove temporary SQLite database files available via journal_mode configuration.
  • Convert Collection::make() to new Collection().
v10.4.0

Changes

  • Supports PHPUnit 12.2.
  • Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.
  • Update skeleton's configuration.
v9.15.0

Changes

  • Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.
v8.38.0

Changes

  • Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.
v7.57.0

Changes

  • Orchestra\Foundation\Env now extends Orchestra\Sidekick\Env.
v10.3.0

Changes

  • Requires Laravel Framework 12.8.0 and above.
  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.

Fixes

  • Fix handling deprecations logging when logger is not not available when running tests.
v9.14.0

Changes

  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.

Fixes

  • Fix handling deprecations logging when logger is not not available when running tests.
v8.37.0

Changes

  • Orchestra\Testbench\PHPUnit\TestCase now implements Orchestra\Testbench\Concerns\InteractsWithMockery.

Fixes

  • Fix handling deprecations logging when logger is not not available when running tests.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport