Try to run tests with Behat @ dev-master

This commit is contained in:
Kamil Kokot
2020-01-15 14:41:56 +01:00
parent 8c54ffec8e
commit 019557e8e3
5 changed files with 20 additions and 10 deletions

View File

@@ -31,12 +31,14 @@ Feature: BrowserKit integration
use Behat\Behat\Context\Context;
use FriendsOfBehat\SymfonyExtension\Mink\MinkParameters;
use Psr\Container\ContainerInterface;
use Symfony\Component\BrowserKit\AbstractBrowser;
use Symfony\Component\BrowserKit\Client;
final class SomeContext implements Context {
/** @var Client|AbstractBrowser */
private $client;
public function __construct(Client $client)
public function __construct($client)
{
$this->client = $client;
}
@@ -75,6 +77,9 @@ Feature: BrowserKit integration
autowire: true
autoconfigure: true
bind:
$client: "@test.client"
App\Tests\SomeContext: ~
"""
When I run Behat