Files
server/tests/php/BaseTest.php
Sebastian Krupinski 1d9def792a
All checks were successful
Build Test / build (pull_request) Successful in 13s
PHP Tests / test (pull_request) Successful in 53s
chore: implement basic tests
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-02-11 01:40:28 -05:00

30 lines
607 B
PHP

<?php
namespace KTXT;
use PHPUnit\Framework\TestCase;
class BaseTest extends TestCase
{
public function testBasicAssertion(): void
{
$this->assertTrue(true);
}
public function testArrayOperations(): void
{
$array = ['foo' => 'bar'];
$this->assertArrayHasKey('foo', $array);
$this->assertEquals('bar', $array['foo']);
}
public function testStringOperations(): void
{
$string = 'Hello, World!';
$this->assertStringContainsString('World', $string);
$this->assertEquals(13, strlen($string));
}
}