mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-10 01:07:45 +01:00
Raised minimum PHP version to 8.1 (#19879)
This commit is contained in:
@@ -16,7 +16,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class StringValidatorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@@ -112,9 +112,9 @@ class StringValidatorTest extends TestCase
|
||||
public function testEnsureMessagesOnInit()
|
||||
{
|
||||
$val = new StringValidator(['min' => 1, 'max' => 2]);
|
||||
$this->assertInternalType('string', $val->message);
|
||||
$this->assertInternalType('string', $val->tooLong);
|
||||
$this->assertInternalType('string', $val->tooShort);
|
||||
$this->assertIsString('string', $val->message);
|
||||
$this->assertIsString('string', $val->tooLong);
|
||||
$this->assertIsString('string', $val->tooShort);
|
||||
}
|
||||
|
||||
public function testCustomErrorMessageInValidateAttribute()
|
||||
|
||||
Reference in New Issue
Block a user