<?php
use Behat\Mink\Mink,
Behat\Mink\Session,
Behat\Mink\Driver\WUnitDriver;
$mink = new Mink(array(
'wunit' => new Session(new WUnitDriver()),
));
$mink->getSession('wunit')->getPage()->findLink('Chat')->click();
default:
extensions:
Behat\MinkExtension\Extension:
default_session: wunit
Behat\YiiExtension\Extension:
mink_driver: true
framework_script: ../../framework/yii.php
config_script: ../config/test.php
{
"requires": {
"behat/mink": "~1.5",
"behat/mink-extension": "*",
"behat/yii-extension": "*",
"behat/mink-wunit-driver": "*"
}
}
curl http://getcomposer.org/installer | php
php composer.phar install
Copyright (c) 2012 Patrick Dreyer (patrick.dreyer.name). See LICENSE for details.
- Patrick Dreyer patrickdreyer