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\Tester;
13 use Behat\Gherkin\Node\FeatureNode;
14 use Behat\Testwork\Environment\Environment;
15 use Behat\Testwork\Tester\Result\TestResult;
16 use Behat\Testwork\Tester\Setup\Setup;
17 use Behat\Testwork\Tester\Setup\Teardown;
20 * Prepares and tests background from a provided feature object against provided environment.
22 * @author Konstantin Kudryashov <ever.zet@gmail.com>
24 interface BackgroundTester
27 * Sets up background for a test.
29 * @param Environment $env
30 * @param FeatureNode $feature
31 * @param Boolean $skip
35 public function setUp(Environment $env, FeatureNode $feature, $skip);
40 * @param Environment $env
41 * @param FeatureNode $feature
42 * @param Boolean $skip
46 public function test(Environment $env, FeatureNode $feature, $skip);
49 * Tears down background after a test.
51 * @param Environment $env
52 * @param FeatureNode $feature
53 * @param Boolean $skip
54 * @param TestResult $result
58 public function tearDown(Environment $env, FeatureNode $feature, $skip, TestResult $result);