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

Test Bundle Laravel Package

alexislefebvre/test-bundle

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Test Bundle
Is this bundle compatible with Laravel, or is it strictly for Symfony2?
This bundle is **not compatible with Laravel**—it’s designed for Symfony2 and relies on Symfony’s Dependency Injection, Security, and Doctrine components. Laravel uses a different testing stack (e.g., HttpTestCase, Pest), so direct integration isn’t feasible without significant refactoring.
What Laravel alternatives provide similar functional testing features?
Laravel’s built-in **HttpTestCase** (PHPUnit) or **Pest** already offer authenticated requests, fixtures via **DatabaseMigrations**, and query logging. For advanced fixtures, consider **spatie/laravel-test-factories** or **orchestra/testbench** for legacy testing.
Can I use this bundle’s query counting or fixture loading in Laravel?
No, the bundle’s **WebTestCase** and **fixture loading** are tightly coupled to Symfony’s DI and DoctrineFixturesBundle. Laravel uses **DatabaseTransactions** or **RefreshDatabase** for fixtures and **DB::enableQueryLog()** for query counting—no direct porting is recommended.
How does this bundle handle authenticated requests compared to Laravel’s `actingAs()`?
This bundle relies on Symfony’s **Security component** (e.g., firewalls, http_basic auth), while Laravel uses **actingAs()** or **Sanctum/Passport**. The two systems are incompatible—Laravel’s middleware-based auth won’t work with Symfony’s SecurityBundle.
Is the bundle actively maintained, or is it archived?
The bundle is **archived** and tied to **Symfony2**, which reached end-of-life in 2023. Laravel’s ecosystem evolves rapidly, making compatibility unlikely. Avoid dependency risks by using modern Laravel-native tools instead.
Can I run Symfony tests alongside Laravel in a monolith?
A hybrid approach is possible but complex. You’d need separate test environments (e.g., Symfony’s Kernel vs. Laravel’s Artisan) and may face **DI conflicts**. For shared testing, consider **symfony/panther** (for browser testing) or refactor to Laravel’s tools.
Does this bundle support parallel testing like Pest or Paratest?
The bundle documents **Paratest** and **Fastest** for Symfony, but Laravel’s **Pest** already supports parallel testing natively. Integrating this bundle would likely break parallelization due to Symfony’s DI system.
What’s the effort to adapt this bundle for Laravel?
High effort. You’d need to rewrite **WebTestCase** to use Laravel’s **HttpClient**, replace **DoctrineFixturesBundle** with **Factories/Seeders**, and adapt **Security** logic. This is **not cost-effective**—Laravel’s core tools already cover these needs.
Are there performance differences between this bundle and Laravel’s native testing?
Likely **slower** due to Symfony’s overhead. Laravel’s **HttpTestCase** and **Pest** are optimized for Laravel’s stack, while this bundle adds Symfony’s DI and Security layers. CI build times may increase unnecessarily.
What if my team has legacy Symfony2 code that must use this bundle?
Isolate the Symfony2 tests in a **separate microservice** or Docker container. Use **API contracts** (e.g., JSON:API) to interact with Laravel. Avoid mixing testing stacks—it introduces **maintenance debt** and **integration risks**.
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