Skip to content

Commit

Permalink
Merge pull request #140 from pfrenssen/DrupalSubContextInterface
Browse files Browse the repository at this point in the history
Clean up DrupalSubContextInterface.

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
  • Loading branch information
jhedstrom committed Feb 14, 2015
1 parent b486a75 commit 82db4c7
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/Drupal/DrupalExtension/Context/DrupalSubContextInterface.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
<?php

/**
* Contains \Drupal\DrupalExtension\Context\DrupalSubContextInterface.
*/

namespace Drupal\DrupalExtension\Context;

use Behat\Behat\Context\Context;

use Drupal\DrupalDriverManager;

/**
* Interface for subcontexts.
*
* Implement this interface if you want to provide custom Behat step definitions
* for your contributed modules. The class should be placed in a file named
* 'MYMODULE.behat.inc'.
*
* See the documentation on "Contributed module subcontexts".
*/
interface DrupalSubContextInterface extends Context {

/**
* Instantiates the subcontext.
*
* @param \Drupal\Drupal
* @param \Drupal\DrupalDriverManager $drupal
* The Drupal Driver manager.
*
* @return string
*/
public function __construct(DrupalDriverManager $context);
public function __construct(DrupalDriverManager $drupal);

}

0 comments on commit 82db4c7

Please sign in to comment.