Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / isolation / src / FunctionUtils.php
diff --git a/vendor/drush/drush/isolation/src/FunctionUtils.php b/vendor/drush/drush/isolation/src/FunctionUtils.php
new file mode 100644 (file)
index 0000000..c0a9c59
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+namespace Drush;
+
+trait FunctionUtils
+{
+    protected $sut;
+
+    protected function callProtected($methodName, $args = [])
+    {
+        $r = new \ReflectionMethod($this->sut, $methodName);
+        $r->setAccessible(true);
+        return $r->invokeArgs($this->sut, $args);
+    }
+}