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:
commit
051cf5f915
@ -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)
|
||||
|
Reference in New Issue
Block a user