Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / site-alias / tests / src / FunctionUtils.php
diff --git a/vendor/consolidation/site-alias/tests/src/FunctionUtils.php b/vendor/consolidation/site-alias/tests/src/FunctionUtils.php
new file mode 100644 (file)
index 0000000..bcc3521
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+namespace Consolidation\SiteAlias;
+
+trait FunctionUtils
+{
+    protected $sut;
+
+    protected function callProtected($methodName, $args = [])
+    {
+        $r = new \ReflectionMethod($this->sut, $methodName);
+        $r->setAccessible(true);
+        return $r->invokeArgs($this->sut, $args);
+    }
+}