refactored extension to support latest changes in Behat edge
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Behat\MinkExtension\Context\ClassGuesser;
|
||||
|
||||
use Behat\Behat\Context\ClassGuesser\ClassGuesserInterface;
|
||||
|
||||
/**
|
||||
* Mink context class guesser.
|
||||
* Provides Mink context class if no other class found.
|
||||
*/
|
||||
class MinkContextClassGuesser implements ClassGuesserInterface
|
||||
{
|
||||
/**
|
||||
* Tries to guess context classname.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function guess()
|
||||
{
|
||||
return 'Behat\\MinkExtension\\Context\\MinkContext';
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Behat\MinkExtension\Context;
|
||||
namespace Behat\MinkExtension\Context\Initializer;
|
||||
|
||||
use Behat\Behat\Context\ContextInitializerInterface,
|
||||
use Behat\Behat\Context\Initializer\InitializerInterface,
|
||||
Behat\Behat\Context\ContextInterface;
|
||||
|
||||
use Behat\Mink\Mink;
|
||||
|
||||
use Behat\MinkExtension\Context\MinkAwareContextInterface;
|
||||
|
||||
/*
|
||||
* This file is part of the Behat\MinkExtension.
|
||||
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
|
||||
@@ -21,7 +23,7 @@ use Behat\Mink\Mink;
|
||||
*
|
||||
* @author Konstantin Kudryashov <ever.zet@gmail.com>
|
||||
*/
|
||||
class MinkAwareContextInitializer implements ContextInitializerInterface
|
||||
class MinkAwareInitializer implements InitializerInterface
|
||||
{
|
||||
private $mink;
|
||||
private $parameters;
|
||||
Reference in New Issue
Block a user