diff --git a/tests/YiiRouter/UrlCreatorTest.php b/tests/YiiRouter/UrlCreatorTest.php index 333cf7cad..3a4033efa 100644 --- a/tests/YiiRouter/UrlCreatorTest.php +++ b/tests/YiiRouter/UrlCreatorTest.php @@ -4,12 +4,16 @@ namespace Yiisoft\Yii\DataView\Tests\YiiRouter; +use PHPUnit\Framework\MockObject\Exception; use PHPUnit\Framework\TestCase; use Yiisoft\Router\UrlGeneratorInterface; use Yiisoft\Yii\DataView\YiiRouter\UrlCreator; final class UrlCreatorTest extends TestCase { + /** + * @throws Exception + */ public function testInvoke(): void { $arguments = ['page' => 2]; @@ -30,6 +34,9 @@ public function testInvoke(): void $this->assertSame($expectedUrl, $urlCreator($arguments, $queryParameters)); } + /** + * @throws Exception + */ public function testInvokeWithEmptyParameters(): void { $expectedUrl = '/users'; @@ -44,6 +51,9 @@ public function testInvokeWithEmptyParameters(): void $this->assertSame($expectedUrl, $urlCreator([], [])); } + /** + * @throws Exception + */ public function testInvokeWithOnlyArguments(): void { $arguments = ['id' => 123]; @@ -63,6 +73,9 @@ public function testInvokeWithOnlyArguments(): void $this->assertSame($expectedUrl, $urlCreator($arguments, [])); } + /** + * @throws Exception + */ public function testInvokeWithOnlyQueryParameters(): void { $queryParameters = ['filter' => 'active'];