• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bleedingdeacons / sentinel / 30646007585
91%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2026 04:11PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Jul 2026 04:10PM UTC coverage: 90.677% (+0.2%) from 90.517%
30646007585

push

github

web-flow
chore(tests): migrate from wp_mock to bleedingdeacons/wp-mocks (#23)

10up/wp_mock 1.1.1 declares "phpunit/phpunit": "^9.6" in its own require
block and has no PHPUnit 10 branch, so this suite silently resolved to
PHPUnit 9.6.35 despite composer.json asking for "^9.6|^10.0". Brain Monkey
declares no PHPUnit constraint at all, which frees the suite to 10.5.

- composer.json: drop 10up/wp_mock, add bleedingdeacons/wp-mocks ^1.0 via a
  vcs repositories entry, pin phpunit/phpunit ^10.5.
- phpunit.xml: 10.5 schema — coverage include moves into <source>,
  cacheResultFile becomes cacheDirectory.
- tests/bootstrap.php: load the shared stubs via Bootstrap::load(['wordpress']),
  which also loads Patchwork before anything patchable. The `sentinel` stub
  group is deliberately left out: Sentinel *is* the logger, so wp_log() and
  Sentinel_Log_Channel come from the real src/Logger/sentinel-logger.php.
  Its local esc_sql() is gone — the package defines the same thing.
- tests/TestCase.php: extends the shared TestCase; $optionStore collapses into
  WpState::$options, which exists for exactly the reason it was invented.
- tests/AdminTestCase.php: 90 lines of hand-rolled stubs gone. What remains is
  the Settings API no-ops the package does not carry, and the two stubs that
  read a per-test property. Nothing stubs add_action/add_filter any more —
  Brain Monkey owns the hook layer and a stub over it breaks hook assertions
  silently. WpDieException/JsonResponseException now come from the package.
- The hook-suffix tests name the real string add_submenu_page() returns
  instead of a fixed stub value.
- Two new tests where the old stubs had been hiding a branch: getRequestType()
  on an admin request, and handleShutdown() with a non-fatal last error.
- setAccessible(true) calls dropped; no-ops since PHP 8.1 and deprecated in
  8.5, which PHPUnit 10 surfaces as deprecations.

190 tests / 331 assertions (was 188 / 329), PHPUnit 10.5.64, PHPStan clean,
production buil... (continued)

1702 of 1877 relevant lines covered (90.68%)

4.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30646007585.1 31 Jul 2026 04:11PM UTC 8
90.68
GitHub Action Run
Source Files on build 30646007585
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30646007585
  • d7a4cf93 on github
  • Prev Build on main (#30567963714)
  • Next Build on main (#30668753632)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc