chore: implement basic tests
All checks were successful
Build Test / build (pull_request) Successful in 13s
PHP Tests / test (pull_request) Successful in 53s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-02-11 01:40:28 -05:00
parent b7ca700c9f
commit 1d9def792a
6 changed files with 54 additions and 173 deletions

29
tests/php/BaseTest.php Normal file
View File

@@ -0,0 +1,29 @@
<?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));
}
}