Add void return to method in tests. (#20602)

This commit is contained in:
Wilmer Arambula
2025-10-14 06:37:35 -03:00
committed by GitHub
parent 30824c5dcf
commit d71f7309ae
249 changed files with 2749 additions and 2538 deletions

View File

@ -27,7 +27,7 @@ class UrlNormalizerTest extends TestCase
$this->mockApplication();
}
public function testNormalizePathInfo()
public function testNormalizePathInfo(): void
{
$normalizer = new UrlNormalizer();
$this->assertEquals('post/123/', $normalizer->normalizePathInfo('post//123//', '/a/'));
@ -54,7 +54,7 @@ class UrlNormalizerTest extends TestCase
$this->assertEquals('post/123/', $normalizer->normalizePathInfo('post//123//', ''));
}
public function testNormalizeRoute()
public function testNormalizeRoute(): void
{
$normalizer = new UrlNormalizer();
$route = ['site/index', ['id' => 1, 'name' => 'test']];
@ -122,7 +122,7 @@ class UrlNormalizerTest extends TestCase
*
* Trailing slash is insignificant if normalizer is enabled.
*/
public function testUrlManager()
public function testUrlManager(): void
{
$config = [
'enablePrettyUrl' => true,