behat/mink-browserkit-driver

Mink框架的Symfony2 BrowserKit驱动程序

安装数量: 48,505,501

依赖者: 362

建议者: 6

安全: 0

星星: 550

关注者: 7

分支: 80

开放问题: 6

类型:mink-driver

v2.2.0 2023-12-09 11:30 UTC

README

Latest Stable Version Latest Unstable Version Total Downloads CI License codecov

使用示例

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

安装

使用 composer require 命令安装

composer require --dev behat/mink behat/mink-browserkit-driver

维护者