4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Context\Environment;
13 use Behat\Behat\Context\Environment\Handler\ContextEnvironmentHandler;
14 use Behat\Testwork\Environment\Environment;
17 * Represents test environment based on a collection of contexts.
19 * @see ContextEnvironmentHandler
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface ContextEnvironment extends Environment
26 * Checks if environment has any contexts registered.
30 public function hasContexts();
33 * Returns list of registered context classes.
37 public function getContextClasses();
40 * Checks if environment contains context with the specified class name.
42 * @param string $class
46 public function hasContextClass($class);