diff vendor/consolidation/output-formatters/test.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/consolidation/output-formatters/test.php	Thu Jul 05 14:24:15 2018 +0000
@@ -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);
+