Yannick Warnier 76a0eae5ea Add static resources and remove tests dir for beta release | il y a 5 ans | |
---|---|---|
.. | ||
src | il y a 5 ans | |
tests | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.travis.yml | il y a 5 ans | |
CHANGELOG.md | il y a 5 ans | |
LICENSE | il y a 5 ans | |
README.md | il y a 5 ans | |
composer.json | il y a 5 ans | |
phpunit.xml.dist | il y a 5 ans |
<?php
use Behat\Mink\Mink,
Behat\Mink\Session,
Behat\Mink\Driver\BrowserKitDriver;
use Symfony\Component\HttpKernel\Client;
$app = require_once(__DIR__.'/app.php'); // Silex app
$mink = new Mink(array(
'silex' => new Session(new BrowserKitDriver(new Client($app))),
));
$mink->getSession('silex')->getPage()->findLink('Chat')->click();
To install use the composer require
command:
composer require --dev behat/mink behat/mink-browserkit-driver