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
Fixtures Bundle

Fixtures Bundle Laravel Package

alexislefebvre/fixtures-bundle

View on GitHub
Deep Wiki
Context7

This bundles provides additional functional test-cases for Symfony2 applications

Frequently asked questions about Fixtures Bundle
Can I use this Symfony FixturesBundle in Laravel for database seeding?
No, this bundle is designed for Symfony’s Doctrine ORM and won’t integrate cleanly with Laravel’s Eloquent. Laravel already provides superior alternatives like `DatabaseSeeder`, `Factories`, and `php artisan db:seed`—no need for a Symfony dependency.
Does this bundle support Laravel’s HttpTestCase for functional testing?
No, the bundle relies on Symfony’s `WebTestCase`, which is incompatible with Laravel’s `HttpTestCase`. Laravel’s built-in testing tools (e.g., `actingAs()`, `RefreshDatabase`) already handle authentication and test setup natively.
How would I adapt the fixture loader to work with Laravel’s Eloquent?
You’d need to rewrite the Doctrine-specific fixture loader to use Laravel’s `DatabaseSeeder` or `Factory` classes. This would require significant effort and isn’t recommended—Laravel’s native tools are more maintainable and optimized.
Is this bundle actively maintained for Laravel?
No, the bundle is archived and focuses on Symfony. Laravel’s testing ecosystem evolves rapidly, while this package would require custom wrappers, introducing technical debt and maintenance overhead.
Can I use the query counting feature in Laravel?
Laravel already provides query counting via `DB::enableQueryLog()` or packages like `laravel-debugbar`. The bundle’s annotation-based approach would need a custom Laravel implementation, which isn’t worth the effort.
What’s the best alternative for Laravel functional testing?
Use Laravel’s built-in `HttpTestCase`, `actingAs()` for auth, and `RefreshDatabase` for fixtures. For advanced factories, consider `Spatie/laravel-factories` or `Laravel’s Testing Facade`—both are Laravel-native and better supported.
Will this bundle slow down Laravel test execution?
Likely yes, due to Symfony-specific abstractions and potential compatibility layers. Laravel’s native tools are optimized for performance, while this bundle would add unnecessary overhead.
Does this bundle work with Laravel’s parallel testing (PestPHP, Paratest)?
No, the bundle’s Symfony-centric design conflicts with Laravel’s testing workflows. PestPHP and Paratest are already optimized for Laravel’s `HttpTestCase` and factories—no adaptation is needed.
How do I mock services in Laravel without this bundle?
Use Laravel’s built-in `Mockery` integration or PHPUnit’s native mocking. The bundle’s DI-aware mock builder isn’t necessary—Laravel’s container and testing tools handle mocking seamlessly.
Is there a Laravel package that offers similar functionality?
Yes, Laravel’s core testing tools (`HttpTestCase`, `RefreshDatabase`) and packages like `Spatie/laravel-test-factory` or `NunoMaduro/collision` provide fixture management, auth helpers, and query counting—all without Symfony dependencies.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware