Release 2.12 (#4609)
This commit is contained in:
@@ -28,14 +28,14 @@ class TimeFormatValidatorTest extends ConstraintValidatorTestCase
|
||||
return new TimeFormatValidator();
|
||||
}
|
||||
|
||||
public function testConstraintIsInvalid()
|
||||
public function testConstraintIsInvalid(): void
|
||||
{
|
||||
$this->expectException(UnexpectedTypeException::class);
|
||||
|
||||
$this->validator->validate('foo', new NotBlank());
|
||||
}
|
||||
|
||||
public function testWrongValueThrowsException()
|
||||
public function testWrongValueThrowsException(): void
|
||||
{
|
||||
$this->expectException(UnexpectedValueException::class);
|
||||
$this->expectExceptionMessage('Expected argument of type "string", "stdClass" given');
|
||||
@@ -46,7 +46,7 @@ class TimeFormatValidatorTest extends ConstraintValidatorTestCase
|
||||
/**
|
||||
* @dataProvider getValidTimes
|
||||
*/
|
||||
public function testValidationSucceeds(?string $value)
|
||||
public function testValidationSucceeds(?string $value): void
|
||||
{
|
||||
$this->validator->validate($value, new TimeFormat());
|
||||
$this->assertNoViolation();
|
||||
@@ -69,7 +69,7 @@ class TimeFormatValidatorTest extends ConstraintValidatorTestCase
|
||||
/**
|
||||
* @dataProvider getInvalidTimes
|
||||
*/
|
||||
public function testValidationProblem(?string $value)
|
||||
public function testValidationProblem(?string $value): void
|
||||
{
|
||||
$this->validator->validate($value, new TimeFormat());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user