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