php-kilo/tests/TerminalTest.php
Timothy Warren e6f7095a45
All checks were successful
timw4mail/php-kilo/pipeline/head This commit looks good
Move terminal handling to its own class
2021-03-05 12:06:23 -05:00

17 lines
332 B
PHP

<?php declare(strict_types=1);
namespace Aviat\Kilo\Tests;
use PHPUnit\Framework\TestCase;
use Aviat\Kilo\Terminal;
class TerminalTest extends TestCase {
public function test_getWindowSize(): void
{
[$rows, $cols] = Terminal::getWindowSize();
$this->assertGreaterThan(0, $rows);
$this->assertGreaterThan(0, $cols);
}
}