mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 02:28:35 +08:00 
			
		
		
		
	Raise version min PHP 7.3.
				
					
				
			This commit is contained in:
		| @ -22,7 +22,7 @@ use yiiunit\TestCase; | ||||
|  */ | ||||
| class UrlTest extends TestCase | ||||
| { | ||||
|     protected function setUp() | ||||
|     protected function setUp(): void | ||||
|     { | ||||
|         parent::setUp(); | ||||
|         $this->mockApplication([ | ||||
| @ -47,7 +47,7 @@ class UrlTest extends TestCase | ||||
|         ], '\yii\web\Application'); | ||||
|     } | ||||
|  | ||||
|     protected function tearDown() | ||||
|     protected function tearDown(): void | ||||
|     { | ||||
|         Yii::$app->getSession()->removeAll(); | ||||
|         parent::tearDown(); | ||||
| @ -268,7 +268,7 @@ class UrlTest extends TestCase | ||||
|                 ['label' => 'Test', 'url' => ['/site/page', 'view' => 'about']], | ||||
|             ], | ||||
|         ]); | ||||
|         $this->assertRegExp('~<a href="/site/page.html\?view=about">~', $output); | ||||
|         $this->assertMatchesRegularExpression('~<a href="/site/page.html\?view=about">~', $output); | ||||
|     } | ||||
|  | ||||
|     public function testBase() | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Wilmer Arambula
					Wilmer Arambula