This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console/Tests/TerminalTest.php

30 lines
789 B
PHP
Raw Normal View History

2016-06-09 12:42:05 +01:00
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tests;
use Symfony\Component\Console\Terminal;
class TerminalTest extends \PHPUnit_Framework_TestCase
{
public function testGetDimensions()
{
$terminal = new Terminal();
$dimensions = $terminal->getDimensions();
$this->assertCount(2, $dimensions);
$terminal->setDimensions(100, 50);
$this->assertSame(array(100, 50), $terminal->getDimensions());
$this->assertSame(100, $terminal->getWidth());
$this->assertSame(50, $terminal->getHeight());
}
}