feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready

This commit is contained in:
2025-10-31 01:39:24 +01:00
parent 55c04e4fd0
commit e26eb2aa12
601 changed files with 44184 additions and 32477 deletions

View File

@@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
use App\Framework\Attributes\Singleton;
describe('Singleton', function () {
it('can be instantiated', function () {
$singleton = new Singleton();
expect($singleton)->toBeInstanceOf(Singleton::class);
});
it('is an attribute class', function () {
$reflection = new ReflectionClass(Singleton::class);
$attributes = $reflection->getAttributes(\Attribute::class);
expect($attributes)->toHaveCount(1);
});
it('targets class only', function () {
$reflection = new ReflectionClass(Singleton::class);
$attribute = $reflection->getAttributes(\Attribute::class)[0];
$attributeInstance = $attribute->newInstance();
expect($attributeInstance->flags)->toBe(\Attribute::TARGET_CLASS);
});
});