protected static function getDriver() { $client = new Client(require __DIR__ . '/../../../app.php'); $driver = new BrowserKitDriver($client); $driver->setRemoveScriptFromUrl(false); return $driver; }
public function __construct(KernelInterface $kernel, $baseUrl = null) { parent::__construct($kernel->getContainer()->get('test.client'), $baseUrl); }
/** * {@inheritdoc} */ public function reset() { parent::reset(); $this->getClient()->resetAuth(); }
/** * Create a new KernelDriver. * * @param HttpKernelInterface $app * @param string|null $baseUrl */ public function __construct(HttpKernelInterface $app, $baseUrl = null) { parent::__construct(new Client($app), $baseUrl); }
/** * Initializes Goutte driver. * * @param Client $client HttpKernel client instance */ public function __construct(Client $client = null) { parent::__construct($client ?: new Client()); }
/** * Create a new Driver. * * @param Application $app * @param string|null $baseUrl */ public function __construct(Application $app, $baseUrl = null) { parent::__construct(new LumenClient($app), $baseUrl); }
/** * Create a new KernelDriver. * * @param \Slim\App $app * @param string|null $baseUrl */ public function __construct(\Slim\App $app, $baseUrl = null) { parent::__construct(new Client($app), $baseUrl); }