Commit 863d5e3
Survicate tests: inline function stubs, drop fixtures dir
The three fixture files only existed to dodge PHP's "function already
declared" rule across tests. Each stub is now declared inline inside
its test method — namespaced (\WPForTeams\is_wpforteams_site) and
global (has_blog_sticker) stubs both go through an eval'd namespace
block since the test file itself lives in namespace A8C\FSE.
@runInSeparateProcess on each test keeps the function table fresh.
Removes tests/php/features/survicate/fixtures/.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 79aa948 commit 863d5e3
4 files changed
Lines changed: 7 additions & 60 deletions
File tree
- projects/packages/jetpack-mu-wpcom/tests/php/features/survicate
- fixtures
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| |||
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
415 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
416 | 420 | | |
417 | 421 | | |
418 | 422 | | |
| |||
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
436 | | - | |
| 440 | + | |
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| |||
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 0 additions & 19 deletions
This file was deleted.
0 commit comments