Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Tester / SuiteTester.php
1 <?php
2
3 /*
4  * This file is part of the Behat Testwork.
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\Testwork\Tester;
12
13 use Behat\Testwork\Environment\Environment;
14 use Behat\Testwork\Specification\SpecificationIterator;
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 provided suite specifications against provided environment.
21  *
22  * @author Konstantin Kudryashov <ever.zet@gmail.com>
23  */
24 interface SuiteTester
25 {
26     /**
27      * Sets up suite for a test.
28      *
29      * @param Environment           $env
30      * @param SpecificationIterator $iterator
31      * @param Boolean               $skip
32      *
33      * @return Setup
34      */
35     public function setUp(Environment $env, SpecificationIterator $iterator, $skip);
36
37     /**
38      * Tests provided suite specifications.
39      *
40      * @param Environment           $env
41      * @param SpecificationIterator $iterator
42      * @param Boolean               $skip
43      *
44      * @return TestResult
45      */
46     public function test(Environment $env, SpecificationIterator $iterator, $skip);
47
48     /**
49      * Tears down suite after a test.
50      *
51      * @param Environment           $env
52      * @param SpecificationIterator $iterator
53      * @param Boolean               $skip
54      * @param TestResult            $result
55      *
56      * @return Teardown
57      */
58     public function tearDown(Environment $env, SpecificationIterator $iterator, $skip, TestResult $result);
59 }