Files
ops-Gazelle/tests/phpunit/Util/ImageProxyTest.php
T
2026-05-27 23:29:04 +02:00

14 lines
427 B
PHP

<?php
namespace Gazelle;
use Gazelle\Util\ImageProxy;
use PHPUnit\Framework\TestCase;
class ImageProxyTest extends TestCase {
public function testBadHost(): void {
$this->assertNull(ImageProxy::badHost("https://some.image.host.example.com/image.jpg"), 'imageproxy-badhost-good');
$this->assertEquals('phpunit.bad', ImageProxy::badHost("https://phpunit.bad/image.jpg"), 'imageproxy-badhost-bad');
}
}