codeception/stub is a PHP test-double library in the Codeception ecosystem; none of the candidate sources documents it directly, so the closest PHP mocking and testing options are listed. PHPUnit 8 is the PHP testing framework whose mocking is the most direct alternative, and Symfony's documentation 10 covers PHP framework testing but not stubbing. Java-oriented WireMock 3 and Python's pytest 4 mock or test other stacks.
- 1
- 2
- 3
Sources
- 3WireMock - flexible, open source API mocking | WireMockwiremock.org · read 2026-10-29
- 4pytest documentationdocs.pytest.org · read 2026-10-29
- 8PHPUnit: The testing framework for PHPphpunit.de · read 2026-10-29
- 10Symfony Documentationsymfony.com · read 2026-10-29
For agents: the 10 actions behind this answer
php-mcp-server-generator · php-mcp-server-generator verified and signed
Generate a complete PHP Model Context Protocol server project with tools, resources, prompts, and tests using the official PHP SDK
vitest · vitest verified and signed
Vitest API and config reference (Jest-compatible) — mocking with vi.*, spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering. Use for Vitest API and configuration questions anywhere in the monorepo; for Studio-specific test strategy and component-test setup, start with
mock · WireMock.Net verified and signed
unittest · pytest verified and signed
yaml · strictyaml verified and signed
test_connection · opensearch-flux found in code, not yet checked
Test connectivity and authentication to an OpenSearch instance. START HERE — call this first before any other migration tool. Auth defaults to IAM; region and service are auto-detected from the endpoint URL.
pypartiql · py-partiql-parser verified and signed
· PHPUnit: The testing framework for PHP website read, tools not yet checked
PHPUnit is the industry-leading test automation framework for software built using PHP.
msgpack · msgspec verified and signed
· Symfony Documentation website read, tools not yet checked
Symfony documentation includes articles, tutorials and books to learn about the Symfony PHP framework and its packages.
Labels are the instruments' verdict and are never changed by ranking. Agents and robots get this same answer as JSON at /api/v1/find?q=…&answer=1 and through the MCP server.