Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / EventDispatcher / Event / AfterFeatureSetup.php
diff --git a/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Event/AfterFeatureSetup.php b/vendor/behat/behat/src/Behat/Behat/EventDispatcher/Event/AfterFeatureSetup.php
new file mode 100644 (file)
index 0000000..73076ea
--- /dev/null
@@ -0,0 +1,68 @@
+<?php
+
+/*
+ * This file is part of the Behat.
+ * (c) Konstantin Kudryashov <ever.zet@gmail.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Behat\Behat\EventDispatcher\Event;
+
+use Behat\Gherkin\Node\FeatureNode;
+use Behat\Testwork\Environment\Environment;
+use Behat\Testwork\EventDispatcher\Event\AfterSetup;
+use Behat\Testwork\Tester\Setup\Setup;
+
+/**
+ * Represents an event right after feature is setup for a test.
+ *
+ * @author Konstantin Kudryashov <ever.zet@gmail.com>
+ */
+final class AfterFeatureSetup extends FeatureTested implements AfterSetup
+{
+    /**
+     * @var FeatureNode
+     */
+    private $feature;
+    /**
+     * @var Setup
+     */
+    private $setup;
+
+    /**
+     * Initializes event.
+     *
+     * @param Environment $env
+     * @param FeatureNode $feature
+     * @param Setup       $setup
+     */
+    public function __construct(Environment $env, FeatureNode $feature, Setup $setup)
+    {
+        parent::__construct($env);
+
+        $this->feature = $feature;
+        $this->setup = $setup;
+    }
+
+    /**
+     * Returns feature.
+     *
+     * @return FeatureNode
+     */
+    public function getFeature()
+    {
+        return $this->feature;
+    }
+
+    /**
+     * Returns current test setup.
+     *
+     * @return Setup
+     */
+    public function getSetup()
+    {
+        return $this->setup;
+    }
+}