junijunijuni
Some checks failed
/ ls (pull_request) Has been cancelled

This commit is contained in:
lubiana 2025-05-21 21:43:53 +02:00
parent 9c4648eb94
commit 101cdb5d10
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
5 changed files with 151 additions and 9 deletions

View file

@ -0,0 +1,20 @@
<?php declare(strict_types=1);
namespace App\Tests\Unit\Service;
use App\Service\Favicon;
use function expect;
use function test;
test('Favicon returns SVG string', function (): void {
$favicon = new Favicon();
$result = (string)$favicon;
expect($result)
->toBeString()
->toContain('data:image/svg+xml')
->toContain('transform=\'rotate(')
->toContain('viewBox=\'0 0 512 512\'');
})
->covers(Favicon::class);