17 lines
332 B
PHP
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);
|
||
|
}
|
||
|
}
|