public function ApplicationTest::testTerminalDimensions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testTerminalDimensions()
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 942
Class
Namespace
Symfony\Component\Console\TestsCode
public function testTerminalDimensions() {
$application = new Application();
$originalDimensions = $application
->getTerminalDimensions();
$this
->assertCount(2, $originalDimensions);
$width = 80;
if ($originalDimensions[0] == $width) {
$width = 100;
}
$application
->setTerminalDimensions($width, 80);
$this
->assertSame(array(
$width,
80,
), $application
->getTerminalDimensions());
}