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