Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Testwork / Tester / Exercise.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\Specification\SpecificationIterator;
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 exercise specifications.
20  *
21  * @author Konstantin Kudryashov <ever.zet@gmail.com>
22  */
23 interface Exercise
24 {
25     /**
26      * Sets up exercise for a test.
27      *
28      * @param SpecificationIterator[] $iterators
29      * @param Boolean                 $skip
30      *
31      * @return Setup
32      */
33     public function setUp(array $iterators, $skip);
34
35     /**
36      * Tests suites specifications.
37      *
38      * @param SpecificationIterator[] $iterators
39      * @param Boolean                 $skip
40      *
41      * @return TestResult
42      */
43     public function test(array $iterators, $skip);
44
45     /**
46      * Tears down exercise after a test.
47      *
48      * @param SpecificationIterator[] $iterators
49      * @param Boolean                 $skip
50      * @param TestResult              $result
51      *
52      * @return Teardown
53      */
54     public function tearDown(array $iterators, $skip, TestResult $result);
55 }