Version 1
[yaffs-website] / vendor / consolidation / annotated-command / tests / src / ApplicationWithTerminalWidth.php
diff --git a/vendor/consolidation/annotated-command/tests/src/ApplicationWithTerminalWidth.php b/vendor/consolidation/annotated-command/tests/src/ApplicationWithTerminalWidth.php
new file mode 100644 (file)
index 0000000..1efaf6d
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+namespace Consolidation\TestUtils;
+
+use Symfony\Component\Console\Application;
+
+class ApplicationWithTerminalWidth extends Application
+{
+    protected $width = 0;
+    protected $height = 0;
+
+    public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
+    {
+        parent::__construct($name, $version);
+    }
+
+    public function setWidthAndHeight($width, $height)
+    {
+        $this->width = $width;
+        $this->height = $height;
+    }
+
+    public function getTerminalDimensions()
+    {
+        return [ $this->width, $this->height ];
+    }
+}