From d171fc8714cbe6022daaf095138cfcfca779d6bc Mon Sep 17 00:00:00 2001 From: "D.Ibragimov" Date: Thu, 3 Jul 2025 13:15:05 +0500 Subject: [PATCH] phpdoc --- tests/YiiRouter/UrlCreatorTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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'];