Files
friends-of-behat-symfony-ex…/src/Driver/SymfonyDriver.php
2017-07-10 20:40:37 +02:00

30 lines
715 B
PHP

<?php
declare(strict_types=1);
/*
* This file is part of the SymfonyExtension package.
*
* (c) Kamil Kokot <kamil@kokot.me>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FriendsOfBehat\SymfonyExtension\Driver;
use Behat\Mink\Driver\BrowserKitDriver;
use Symfony\Component\HttpKernel\KernelInterface;
final class SymfonyDriver extends BrowserKitDriver
{
/**
* @param KernelInterface $kernel
* @param string $baseUrl
*/
public function __construct(KernelInterface $kernel, string $baseUrl)
{
parent::__construct($kernel->getContainer()->get('test.client'), $baseUrl);
}
}