The configuration now makes sessions a first-class citizen instead of being centered around drivers. This allows defining several session based on the same driver type. Instead of allowing other extensions to register their own sessions to add new drivers, they can now register a DriverFactory in the MinkExtension during the extension initialization to make a new driver type available.
25 lines
526 B
PHP
25 lines
526 B
PHP
<?php
|
|
|
|
namespace spec\Behat\MinkExtension\ServiceContainer\Driver;
|
|
|
|
use PhpSpec\ObjectBehavior;
|
|
use Prophecy\Argument;
|
|
|
|
class SeleniumFactorySpec extends ObjectBehavior
|
|
{
|
|
function it_is_a_driver_factory()
|
|
{
|
|
$this->shouldHaveType('Behat\MinkExtension\ServiceContainer\Driver\DriverFactory');
|
|
}
|
|
|
|
function it_is_named_selenium()
|
|
{
|
|
$this->getDriverName()->shouldReturn('selenium');
|
|
}
|
|
|
|
function it_supports_javascript()
|
|
{
|
|
$this->supportsJavascript()->shouldBe(true);
|
|
}
|
|
}
|