This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/vendor/behat/mink-browserkit-driver
2017-02-13 15:31:17 +00:00
..
src Move into nested docroot 2017-02-13 15:31:17 +00:00
.gitignore Move into nested docroot 2017-02-13 15:31:17 +00:00
.travis.yml Move into nested docroot 2017-02-13 15:31:17 +00:00
CHANGELOG.md Move into nested docroot 2017-02-13 15:31:17 +00:00
composer.json Move into nested docroot 2017-02-13 15:31:17 +00:00
LICENSE Move into nested docroot 2017-02-13 15:31:17 +00:00
phpunit.xml.dist Move into nested docroot 2017-02-13 15:31:17 +00:00
README.md Move into nested docroot 2017-02-13 15:31:17 +00:00

Mink BrowserKit Driver

Latest Stable Version Latest Unstable Version Total Downloads Build Status Scrutinizer Quality Score Code Coverage License

Usage Example

<?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();

Installation

{
    "require": {
        "behat/mink":                   "~1.5",
        "behat/mink-browserkit-driver": "~1.1"
    }
}
$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install

Maintainers