Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Context / Environment / ContextEnvironment.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Behat\Context\Environment;
12
13 use Behat\Behat\Context\Environment\Handler\ContextEnvironmentHandler;
14 use Behat\Testwork\Environment\Environment;
15
16 /**
17  * Represents test environment based on a collection of contexts.
18  *
19  * @see ContextEnvironmentHandler
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface ContextEnvironment extends Environment
24 {
25     /**
26      * Checks if environment has any contexts registered.
27      *
28      * @return Boolean
29      */
30     public function hasContexts();
31
32     /**
33      * Returns list of registered context classes.
34      *
35      * @return string[]
36      */
37     public function getContextClasses();
38
39     /**
40      * Checks if environment contains context with the specified class name.
41      *
42      * @param string $class
43      *
44      * @return Boolean
45      */
46     public function hasContextClass($class);
47 }