mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-09-28 10:13:43 -04:00
14 lines
427 B
PHP
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');
|
|
}
|
|
}
|