Weave 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

Mockery Bundle Laravel Package

polishsymfonycommunity/mockery-bundle

Symfony bundle that integrates Mockery into the dependency injection container. Autowire the Mockery service, build container-aware mocks, and simplify test doubles in unit and functional tests without manual setup or boilerplate.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Testing and QA tooling strategy: whether to support BDD/Behat acceptance tests that need Mockery-based service mocking.
  • Build vs. buy: this is thin Symfony/Behat integration glue, not a strategic capability; in Laravel, native Mockery and container mocking already cover the use case.
  • Roadmap: do not prioritize this package for Laravel product work; invest instead in Pest/PHPUnit plus Laravel’s built-in mocking helpers.
  • Use cases: legacy Symfony applications with existing Behat suites that need to mock services or external dependencies during acceptance tests.
  • Risk decision: 15 stars and 0 dependents indicate low community validation and likely maintenance risk; avoid as a critical-path dependency.

When to Consider This Package

  • Only when maintaining a Symfony application with an existing Behat suite and a specific need for Mockery-backed service mocking.
  • If the team already accepts Symfony bundle conventions and is comfortable with a dev-only, low-support dependency.
  • Do not consider it for Laravel: it is a Symfony bundle, not a Laravel package, and Laravel already provides native mocking and container replacement patterns.
  • Look elsewhere for actively maintained, widely adopted testing integrations, PHPUnit/Pest-native mocking, or modern Laravel BDD alternatives.

How to Pitch It (Stakeholders)

  • Executives: this is not a strategic dependency and has low adoption/maintenance risk; it should not enter the product roadmap for Laravel work.
  • Engineering: it is a small Symfony/Behat bundle for mocking services with Mockery. For Laravel, use $this->mock(), $this->instance(), or Mockery directly instead of adopting this package.
  • Recommendation: reject for Laravel adoption; if a legacy Symfony/Behat team already uses it, keep it dev-only and plan migration to native test doubles. Treat it as tactical legacy test tooling, not a product capability.
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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource