Files
sitemap-plugin/tests/Exception/RouteExistsExceptionTest.php
2019-01-23 20:48:47 +01:00

18 lines
455 B
PHP

<?php
declare(strict_types=1);
namespace Tests\SitemapPlugin\Exception;
use PHPUnit\Framework\TestCase;
use SitemapPlugin\Exception\RouteExistsException;
final class RouteExistsExceptionTest extends TestCase
{
public function testException()
{
$exception = new RouteExistsException('test');
$this->assertSame('Sitemap route "test" already exists, probably a provider with a non-unique name', $exception->getMessage());
}
}