mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-13 02:37:38 +01:00
Raise version min PHP 7.3.
This commit is contained in:
@@ -16,7 +16,7 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class StringValidatorTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
protected 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($val->message);
|
||||
$this->assertIsString($val->tooLong);
|
||||
$this->assertIsString($val->tooShort);
|
||||
}
|
||||
|
||||
public function testCustomErrorMessageInValidateAttribute()
|
||||
|
||||
Reference in New Issue
Block a user