futtern/tests/Unit/Service/FaviconTest.php
lubiana 101cdb5d10
Some checks failed
/ ls (pull_request) Has been cancelled
junijunijuni
2025-05-21 21:43:53 +02:00

20 lines
No EOL
464 B
PHP

<?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);