refactored extension to support latest changes in Behat edge

This commit is contained in:
everzet
2012-05-11 00:43:11 +02:00
parent 328879371c
commit 641157b050
5 changed files with 160 additions and 162 deletions

View File

@@ -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';
}
}

View File

@@ -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;