You are here

public function ApplicationTest::testTerminalDimensions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testTerminalDimensions()

File

vendor/symfony/console/Tests/ApplicationTest.php, line 942

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

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());
}