Files
provider_jmapc/tests/php/unit/BaseTest.php
Sebastian Krupinski 3374d3a287
All checks were successful
Build Test / test (pull_request) Successful in 24s
JS Unit Tests / test (pull_request) Successful in 22s
PHP Unit Tests / test (pull_request) Successful in 1m2s
chore: implement basic tests
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-02-15 22:06:37 -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));
}
}