futtern/tests/Unit/ExampleTest.php
2025-05-24 23:03:21 +02:00

21 lines
441 B
PHP

<?php declare(strict_types=1);
test('example test', function (): void {
// This is a simple example test
expect(true)
->toBeTrue();
expect(1 + 1)
->toBe(2);
expect('hello world')
->toContain('world');
});
test('array operations', function (): void {
$array = [1, 2, 3];
expect($array)
->toHaveCount(3);
expect($array)
->toContain(2);
expect($array[0])->toBe(1);
});