Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / output-formatters / test.php
diff --git a/vendor/consolidation/output-formatters/test.php b/vendor/consolidation/output-formatters/test.php
new file mode 100644 (file)
index 0000000..0e14ada
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+use Consolidation\OutputFormatters\Transformations\WordWrapper;
+
+include 'vendor/autoload.php';
+
+$wrapper = new WordWrapper(78);
+
+$data = [
+    'name' => ['Name', ':', 'Rex', ],
+    'species' => ['Species', ':', 'dog', ],
+    'food' => ['Food', ':', 'kibble', ],
+    'legs' => ['Legs', ':', '4', ],
+    'description' => ['Description', ':', 'Rex is a very good dog, Brett. He likes kibble, and has four legs.', ],
+];
+
+$result = $wrapper->wrap($data);
+
+var_export($result);
+