← Home
Tests Documentation
Overview
Documentation for the test suite in /api/tests/ of the mokoconsulting/mokostandards package.
Test Files
test_circuit_breaker_handling.php
Verifies that CircuitBreakerOpen and RateLimitExceeded exceptions are throwable and
catchable, and that ApiClient trips its circuit breaker after repeated failures.
Run:
php api/tests/test_circuit_breaker_handling.php
test_enterprise_libraries.php
Smoke-tests all Enterprise library classes:
MetricsCollector, SecurityValidator, TransactionManager, UnifiedValidator,
CliFramework (CliFramework).
Run:
php api/tests/test_enterprise_libraries.php
Sample Fixture
tests/sample/ (at the repository root) is a minimal generic repository used to exercise
validators (check_repo_health.php, auto_detect_platform.php) against a local path without
requiring network access or a real GitHub repository.
This directory is committed to version control. It contains:
| Path | Purpose |
|---|---|
README.md |
Substantial README (satisfies health-check threshold) |
LICENSE |
GPL-3.0-or-later |
.gitignore |
Basic ignore rules |
CHANGELOG.md |
Keep-a-Changelog stub |
CODE_OF_CONDUCT.md |
Contributor Covenant stub |
SECURITY.md |
Vulnerability reporting policy |
composer.json |
PHP project manifest (mokoconsulting/sample-repo) |
docs/ |
Minimal docs directory |
.mokogitea/workflows/ci.yml |
Sample CI workflow |
.github/dependabot.yml |
Dependabot configuration |
See api/tests/sample/index.md for details.
Related Documentation
Repo: moko-platform · moko-platform wiki
| Field | Value |
|---|---|
| Minimum Version | 04.07.00 |
| Platform | all |
| Applies To | moko-platform |
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-08 | Moko Consulting | Initial version |
- Home
-
api
- api-automation-index
- api-definitions-default-index
- api-definitions-sync-index
- api-deploy-index
- api-fix-index
- api-index
- api-maintenance-index.-
- api-maintenance-index
- api-plugin-index.-
- api-plugin-index
- api-tests-index.-
- api-tests-sample-index.-
- api-tests-sample-index
- api-validate-index.-
- maintenance-index
- automation
- features
- guides
- operations
- reference
- standards
- templates
-
workflows
- workflows-README.-
- workflows-README
- workflows-auto-release.-
- workflows-auto-release
- workflows-branch-protection.-
- workflows-branch-protection
- workflows-build-release.-
- workflows-build-release
- workflows-cascade-dev.-
- workflows-cascade-dev
- workflows-changelog-management.-
- workflows-changelog-management
- workflows-demo-deployment.-
- workflows-demo-deployment
- workflows-dev-branch-tracking.-
- workflows-dev-branch-tracking
- workflows-dev-deployment.-
- workflows-dev-deployment
- workflows-index.-
- workflows-index
- workflows-release-system.-
- workflows-release-system
- workflows-renovate.-
- workflows-renovate
- workflows-reusable-workflows.-
- workflows-reusable-workflows
- workflows-rs-deployment.-
- workflows-rs-deployment
- workflows-secret-scanning.-
- workflows-secret-scanning
- workflows-shared-workflows.-
- workflows-shared-workflows
- workflows-standards-compliance.-
- workflows-standards-compliance
- workflows-static-analysis.-
- workflows-static-analysis
- workflows-sub-issue-management.-
- workflows-sub-issue-management
- workflows-update-server.-
- workflows-update-server
- workflows-workflow-architecture.-
- workflows-workflow-architecture