Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / Testing / loadTasks.php
diff --git a/vendor/consolidation/robo/src/Task/Testing/loadTasks.php b/vendor/consolidation/robo/src/Task/Testing/loadTasks.php
new file mode 100644 (file)
index 0000000..43145b9
--- /dev/null
@@ -0,0 +1,55 @@
+<?php
+namespace Robo\Task\Testing;
+
+trait loadTasks
+{
+    /**
+     * @param null|string $pathToCodeception
+     *
+     * @return \Robo\Task\Testing\Codecept
+     */
+    protected function taskCodecept($pathToCodeception = null)
+    {
+        return $this->task(Codecept::class, $pathToCodeception);
+    }
+
+    /**
+     * @param null|string $pathToPhpUnit
+     *
+     * @return \Robo\Task\Testing\PHPUnit
+     */
+    protected function taskPhpUnit($pathToPhpUnit = null)
+    {
+        return $this->task(PHPUnit::class, $pathToPhpUnit);
+    }
+
+    /**
+     * @param null $pathToPhpspec
+     *
+     * @return \Robo\Task\Testing\Phpspec
+     */
+    protected function taskPhpspec($pathToPhpspec = null)
+    {
+        return $this->task(Phpspec::class, $pathToPhpspec);
+    }
+
+    /**
+     * @param null $pathToAtoum
+     *
+     * @return \Robo\Task\Testing\Atoum
+     */
+    protected function taskAtoum($pathToAtoum = null)
+    {
+        return $this->task(Atoum::class, $pathToAtoum);
+    }
+
+    /**
+     * @param null $pathToBehat
+     *
+     * @return \Robo\Task\Testing\Behat
+     */
+    protected function taskBehat($pathToBehat = null)
+    {
+        return $this->task(Behat::class, $pathToBehat);
+    }
+}