ContainerInterface to work with Laravel’s Container.SymfonyExtension) for Laravel’s event system.RouteServiceProvider) vs. Symfony’s Router.behat) would need to be exposed via Laravel’s Artisan or as a custom command, with proper argument parsing for Laravel’s CLI structure.actingAs(), followRedirects()) can be used within Behat scenarios.laravel-behat-adapter) be more maintainable than integrating this bundle directly?HttpKernel and DependencyInjection makes it a poor fit without significant abstraction.symfony/http-client), a hybrid approach might be possible, but this complicates the stack.behat/behat standalone with Laravel-specific contexts).behat/behat (not the Symfony bundle) and write Laravel-specific contexts.// src/FeatureContext.php
use Laravel\BrowserKitTesting\TestCase;
use Behat\Behat\Context\Context;
class FeatureContext implements Context {
private $testCase;
public function __construct(TestCase $testCase) {
$this->testCase = $testCase;
}
/**
* @Given I am on the homepage
*/
public function iAmOnTheHomepage() {
$this->testCase->visit('/');
}
}
bootstrap file.ContainerInterface with Laravel’s Container).rector for upgrades).Auth::login()) would need to be tested for compatibility.symfony/process may still pose risks).symfony/console) for Behat may conflict with Laravel’s own dependencies or increase bundle size.How can I help you explore Laravel packages today?