Commit ca359b5
authored
Fix calls to deprecated version of PHPUnit providers (#990)
All PHPUnit Providers now need to be static and public[1].
This commit fixes the references to these in what I believe
was the simplest way possible. In ElasticSearchIndexInitTest
this meant it was necessary to move some mocking out of
the provider and into the test directly.
I investigated creating mocks statically; I discovered `mock()`
which creates a Mockery mock but I decided that making the
decision to move to a different mock library wasn't what I wanted
to do here. I just wanted my tests to run without deprecation
warnings.
[1] sebastianbergmann/phpunit@9caafe21 parent 1562a97 commit ca359b5
2 files changed
Lines changed: 27 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
146 | 169 | | |
147 | 170 | | |
148 | 171 | | |
| |||
159 | 182 | | |
160 | 183 | | |
161 | 184 | | |
162 | | - | |
| 185 | + | |
163 | 186 | | |
164 | 187 | | |
165 | 188 | | |
166 | | - | |
167 | 189 | | |
168 | 190 | | |
169 | 191 | | |
| |||
177 | 199 | | |
178 | 200 | | |
179 | 201 | | |
180 | | - | |
181 | 202 | | |
182 | 203 | | |
183 | 204 | | |
184 | 205 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 206 | | |
194 | 207 | | |
195 | | - | |
196 | 208 | | |
197 | 209 | | |
198 | 210 | | |
| |||
0 commit comments