minor #38871 Use createMock() rather than createStub() (greg0ire)

This PR was merged into the 4.4 branch.

Discussion
----------

Use createMock() rather than createStub()

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | kinda, it's for a bug in the CI
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | n/a

The CI is not using a recent enough version of PHPUnit for that.

As asked by @jderusse in https://github.com/symfony/symfony/pull/38870#issuecomment-718121772

Commits
-------

f0605b8137 Use createMock() rather than createStub()
This commit is contained in:
Fabien Potencier 2020-10-28 20:53:17 +01:00
commit 051cf5f915
1 changed files with 1 additions and 1 deletions

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)