php-kilo/tests/TerminalTest.php
Timothy Warren 998102816e
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
Use c stdlib function to set up raw mode
2023-10-10 13:02:05 -04:00

16 lines
340 B
PHP

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