Use createMock() rather than createStub()

The CI is not using a recent enough version of PHPUnit for that
This commit is contained in:
Grégoire Paris 2020-10-28 19:29:55 +01:00
parent 19585f2f4c
commit f0605b8137
No known key found for this signature in database
GPG Key ID: 24D48B8012B116BF

View File

@ -114,7 +114,7 @@ class UniqueEntityValidatorTest extends ConstraintValidatorTestCase
->method('hasField')
->willReturn(true)
;
$refl = $this->createStub(\ReflectionProperty::class);
$refl = $this->createMock(\ReflectionProperty::class);
$refl
->method('getValue')
->willReturn(true)