Browse Source

Fixed PHP 5.4 compatibility

tags/2.0.14
Alexander Makarov 7 years ago
parent
commit
7adf3152cb
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 4
      tests/framework/rbac/ManagerTestCase.php

4
tests/framework/rbac/ManagerTestCase.php

@ -620,7 +620,7 @@ abstract class ManagerTestCase extends TestCase
try {
$this->auth->defaultRoles = 'test';
} catch (\Exception $e) {
$this->assertInstanceOf(InvalidParamException::class, $e);
$this->assertInstanceOf('\yii\base\InvalidParamException', $e);
$this->assertEquals('Default roles must be either an array or a callable', $e->getMessage());
try {
@ -628,7 +628,7 @@ abstract class ManagerTestCase extends TestCase
return 'test';
};
} catch (\Exception $e) {
$this->assertInstanceOf(InvalidParamException::class, $e);
$this->assertInstanceOf('\yii\base\InvalidParamException', $e);
$this->assertEquals('Default roles closure must return an array', $e->getMessage());
}

Loading…
Cancel
Save