mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user