2021-03-05 12:06:23 -05:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Aviat\Kilo\Tests;
|
|
|
|
|
2023-10-10 13:02:05 -04:00
|
|
|
use Aviat\Kilo\Terminal\Terminal;
|
2021-03-05 12:06:23 -05:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|