mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-30 10:08:08 +08:00
Raise version min PHP 7.3.
This commit is contained in:
@ -38,7 +38,7 @@ class UserTest extends TestCase
|
||||
*/
|
||||
public static $time;
|
||||
|
||||
protected function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
Yii::$app->session->removeAll();
|
||||
static::$time = null;
|
||||
@ -404,7 +404,7 @@ class UserTest extends TestCase
|
||||
|
||||
public function testGetIdentityException()
|
||||
{
|
||||
$session = $this->getMock('yii\web\Session');
|
||||
$session = $this->getMockBuilder(\yii\web\Session::class)->getMock();
|
||||
$session->method('getHasSessionId')->willReturn(true);
|
||||
$session->method('get')->with($this->equalTo('__id'))->willReturn('1');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user