4 * This file is part of the Behat Testwork.
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\Testwork\Environment\Handler;
13 use Behat\Testwork\Environment\Environment;
14 use Behat\Testwork\Environment\StaticEnvironment;
15 use Behat\Testwork\Suite\Suite;
18 * Represents environment handler based on static calls (without any isolation).
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 final class StaticEnvironmentHandler implements EnvironmentHandler
27 public function supportsSuite(Suite $suite)
35 public function buildEnvironment(Suite $suite)
37 return new StaticEnvironment($suite);
43 public function supportsEnvironmentAndSubject(Environment $environment, $testSubject = null)
45 return $environment instanceof StaticEnvironment;
51 public function isolateEnvironment(Environment $environment, $testSubject = null)