4 * This file is part of the Behat.
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\Behat\EventDispatcher\Tester;
13 use Behat\Behat\Tester\Result\StepResult;
14 use Behat\Behat\Tester\StepTester;
15 use Behat\Gherkin\Node\FeatureNode;
16 use Behat\Gherkin\Node\StepNode;
17 use Behat\Testwork\Environment\Environment;
20 * Enable ticks during step testing to allow SigintController in Testwork
21 * to handle an interupt (on PHP7)
23 * @see Behat\Testwork\EventDispatcher\Cli\SigintController
25 * @author Peter Mitchell <peterjmit@gmail.com>
27 final class TickingStepTester implements StepTester
37 * @param StepTester $baseTester
39 public function __construct(StepTester $baseTester)
41 $this->baseTester = $baseTester;
47 public function setUp(Environment $env, FeatureNode $feature, StepNode $step, $skip)
49 return $this->baseTester->setUp($env, $feature, $step, $skip);
55 public function test(Environment $env, FeatureNode $feature, StepNode $step, $skip)
59 return $this->baseTester->test($env, $feature, $step, $skip);
65 public function tearDown(Environment $env, FeatureNode $feature, StepNode $step, $skip, StepResult $result)
67 return $this->baseTester->tearDown($env, $feature, $step, $skip, $result);