4 * This file is part of the Behat Testwork.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Testwork\Tester;
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;
19 * Prepares and tests provided specification against provided environment.
21 * @author Konstantin Kudryashov <ever.zet@gmail.com>
23 interface SpecificationTester
26 * Sets up specification for a test.
28 * @param Environment $env
30 * @param Boolean $skip
34 public function setUp(Environment $env, $spec, $skip);
37 * Tests provided specification.
39 * @param Environment $env
41 * @param Boolean $skip
45 public function test(Environment $env, $spec, $skip);
48 * Tears down specification after a test.
50 * @param Environment $env
52 * @param Boolean $skip
53 * @param TestResult $result
57 public function tearDown(Environment $env, $spec, $skip, TestResult $result);