Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Tester / BackgroundTester.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\Tester;
12
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;
18
19 /**
20  * Prepares and tests background from a provided feature object against provided environment.
21  *
22  * @author Konstantin Kudryashov <ever.zet@gmail.com>
23  */
24 interface BackgroundTester
25 {
26     /**
27      * Sets up background for a test.
28      *
29      * @param Environment $env
30      * @param FeatureNode $feature
31      * @param Boolean     $skip
32      *
33      * @return Setup
34      */
35     public function setUp(Environment $env, FeatureNode $feature, $skip);
36
37     /**
38      * Tests background.
39      *
40      * @param Environment $env
41      * @param FeatureNode $feature
42      * @param Boolean     $skip
43      *
44      * @return TestResult
45      */
46     public function test(Environment $env, FeatureNode $feature, $skip);
47
48     /**
49      * Tears down background after a test.
50      *
51      * @param Environment $env
52      * @param FeatureNode $feature
53      * @param Boolean     $skip
54      * @param TestResult  $result
55      *
56      * @return Teardown
57      */
58     public function tearDown(Environment $env, FeatureNode $feature, $skip, TestResult $result);
59 }