Commit 973d8fc
committed
Stub EntityRepository in the autocomplete test for lowest-deps Prophecy
The lowest version of Doctrine ORM exposes at least one inherited
EntityRepository method whose signature contains an intersection type.
Prophecy's class mirror refuses to double such classes
("Doubling intersection types is not supported"), so the unit-tests
matrix was red on every lowest job.
Swap the prophesized EntityRepository for a no-op anonymous-class
subclass — the closure under test never reads the repository argument
anyway, so all we need is an instance of the correct type to satisfy
the signature. Bypassing the parent constructor leaves the readonly
properties uninitialized but, again, nothing in the test path touches
them.1 parent cf3db1d commit 973d8fc
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
98 | 106 | | |
99 | 107 | | |
100 | 108 | | |
| |||
0 commit comments