renamed MinkAwareContextInterface -> MinkAwareInterface

This commit is contained in:
everzet
2012-05-14 20:52:33 +02:00
parent 0ca2099fa3
commit c71f3ba2e6
4 changed files with 5 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ use Behat\Behat\Context\Initializer\InitializerInterface,
use Behat\Mink\Mink; use Behat\Mink\Mink;
use Behat\MinkExtension\Context\MinkAwareContextInterface; use Behat\MinkExtension\Context\MinkAwareInterface;
/* /*
* This file is part of the Behat\MinkExtension. * This file is part of the Behat\MinkExtension.
@@ -79,8 +79,8 @@ class MinkAwareInitializer implements InitializerInterface, EventSubscriberInter
*/ */
public function supports(ContextInterface $context) public function supports(ContextInterface $context)
{ {
// if context/subcontext implements MinkAwareContextInterface // if context/subcontext implements MinkAwareInterface
if ($context instanceof MinkAwareContextInterface) { if ($context instanceof MinkAwareInterface) {
return true; return true;
} }

View File

@@ -17,7 +17,7 @@ use Behat\Mink\Mink;
* *
* @author Konstantin Kudryashov <ever.zet@gmail.com> * @author Konstantin Kudryashov <ever.zet@gmail.com>
*/ */
interface MinkAwareContextInterface interface MinkAwareInterface
{ {
/** /**
* Sets Mink instance. * Sets Mink instance.

View File

@@ -470,16 +470,6 @@ trait MinkDictionary
system(sprintf($this->getMinkParameter('show_cmd'), escapeshellarg($filename))); system(sprintf($this->getMinkParameter('show_cmd'), escapeshellarg($filename)));
} }
/**
* Returns list of definition translation resources paths.
*
* @return array
*/
public function getTranslationResources()
{
return $this->getMinkTranslationResources();
}
/** /**
* Returns list of definition translation resources paths for this dictionary. * Returns list of definition translation resources paths for this dictionary.
* *

View File

@@ -21,7 +21,7 @@ use Behat\Mink\Mink,
* *
* @author Konstantin Kudryashov <ever.zet@gmail.com> * @author Konstantin Kudryashov <ever.zet@gmail.com>
*/ */
class RawMinkContext extends BehatContext implements MinkAwareContextInterface class RawMinkContext extends BehatContext implements MinkAwareInterface
{ {
private $mink; private $mink;
private $minkParameters; private $minkParameters;