mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
20 lines
496 B
PHP
20 lines
496 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace ShlinkioTest\Shlink\Core\Exception;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Shlinkio\Shlink\Core\Exception\ShortUrlNotFoundException;
|
|
|
|
class InvalidShortCodeExceptionTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function properlyCreatesExceptionFromNotFoundShortCode(): void
|
|
{
|
|
$e = ShortUrlNotFoundException::fromNotFoundShortCode('abc123');
|
|
|
|
$this->assertEquals('No URL found for short code "abc123"', $e->getMessage());
|
|
}
|
|
}
|