2 namespace Consolidation\TestUtils;
4 use Symfony\Component\Console\Application;
6 class ApplicationWithTerminalWidth extends Application
11 public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
13 parent::__construct($name, $version);
16 public function setWidthAndHeight($width, $height)
18 $this->width = $width;
19 $this->height = $height;
22 public function getTerminalDimensions()
24 return [ $this->width, $this->height ];