File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -584,22 +584,19 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
584
584
585
585
When testing your commands, it could be useful to understand how your command
586
586
reacts on different settings like the width and the height of the terminal.
587
- Thanks to the :class: ` Symfony \\ Component \\ Console \\ Terminal ` class, you can
588
- have access to such information: :
587
+ You have access to such information thanks to the
588
+ :class: ` Symfony \\ Component \\ Console \\ Terminal ` class :
589
589
590
590
use Symfony\C omponent\C onsole\T erminal;
591
591
592
592
$terminal = new Terminal();
593
593
594
- // access to number of lines available
594
+ // gets the number of lines available
595
595
$height = $terminal->getHeight();
596
596
597
- // access to number of columns available
597
+ // gets the number of columns available
598
598
$width = $terminal->getWidth();
599
599
600
- By default, the ``Terminal `` class uses the values of the
601
- ``LINES `` and ``COLUMNS `` system environment variables.
602
-
603
600
Logging Command Errors
604
601
----------------------
605
602
You can’t perform that action at this time.
0 commit comments